Skip to content

Commit

Permalink
kernel: adjust SyGasmanNumbers initialization (#5892)
Browse files Browse the repository at this point in the history
Global variables are guaranteed to be zero initialized, so
we can just discard this. Note that the existing code actually
used the wrong bounds (it looped from 0 to 6 in the second argument,
but should have looped to 8).
  • Loading branch information
fingolfin authored Jan 5, 2025
1 parent 2f3c2bc commit 8913a53
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,15 +596,6 @@ void InitSystem (
SyUseModule = 1;
SyWindow = 0;

#ifdef USE_GASMAN
for (i = 0; i < 2; i++) {
UInt j;
for (j = 0; j < 7; j++) {
SyGasmanNumbers[i][j] = 0;
}
}
#endif

if (handleSignals) {
SyInstallAnswerIntr();
}
Expand Down

0 comments on commit 8913a53

Please sign in to comment.