From d96360e4d4e0d36f78a4990308c8223d54f80c43 Mon Sep 17 00:00:00 2001 From: Tomas Hruby Date: Thu, 14 Jan 2010 11:30:02 +0000 Subject: [PATCH] Uninitialized variable fix in VM to kernel protocol - index must be initialized to 0 otherwise bad things happen like the mappings for local APIC are not correct after turning paging on. --- servers/vm/i386/pagetable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/vm/i386/pagetable.c b/servers/vm/i386/pagetable.c index 7479948d3..f2019f4bf 100644 --- a/servers/vm/i386/pagetable.c +++ b/servers/vm/i386/pagetable.c @@ -785,7 +785,7 @@ PUBLIC void pt_init(phys_bytes usedlimit) { int kernmap_pde; phys_bytes addr, len; - int flags, index; + int flags, index = 0; u32_t offset = 0; kernmap_pde = free_pde++; -- 2.44.0