Skip to content

Commit 29ccb6e

Browse files
ecm-pushbxPerditionC
authored andcommitted
main: insure master environment starts out empty
1 parent a0549a3 commit 29ccb6e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

kernel/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ VOID ASMCFUNC FreeDOSmain(void)
106106
drv = 3; /* C: */
107107
LoL->BootDrive = drv;
108108

109+
/* init master environment start */
110+
*master_env = 0;
111+
master_env[1] = 0;
112+
master_env[2] = 0;
113+
master_env[3] = 0;
114+
109115
/* install DOS API and other interrupt service routines, basic kernel functionality works */
110116
setup_int_vectors();
111117

0 commit comments

Comments
 (0)