Skip to content

Commit 914ef02

Browse files
committed
Moved protect_system_vars out of the stack!
1 parent 6d9016b commit 914ef02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lstate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const unsigned int msx1_palette[] = {0x000, 0x000, 0x522, 0x633, 0x116, 0x337, \
9292
0x252, 0x636, 0x262, 0x373, 0x552, 0x663, \
9393
0x422, 0x255, 0x555, 0x666};
9494

95-
95+
unsigned char protect_system_vars;
9696

9797
void init_files() {
9898
// It's mandatory to do this to use files!
@@ -148,8 +148,8 @@ void main(char *argv[], int argc) {
148148
Exit(0);
149149
return;
150150
}
151-
152-
int protect_system_vars = (argc == 2);
151+
152+
protect_system_vars = (argc == 2);
153153
if (protect_system_vars)
154154
printf("Protecting system vars.\r\n");
155155

0 commit comments

Comments
 (0)