From 29ccb6e45414a8a18346a97fdb0f35ebd6fb4025 Mon Sep 17 00:00:00 2001 From: "C. Masloch" Date: Mon, 3 Jul 2023 11:47:39 +0200 Subject: [PATCH] main: insure master environment starts out empty --- kernel/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/main.c b/kernel/main.c index 3250a1e5..8aba8d94 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -106,6 +106,12 @@ VOID ASMCFUNC FreeDOSmain(void) drv = 3; /* C: */ LoL->BootDrive = drv; + /* init master environment start */ + *master_env = 0; + master_env[1] = 0; + master_env[2] = 0; + master_env[3] = 0; + /* install DOS API and other interrupt service routines, basic kernel functionality works */ setup_int_vectors();