From: Tomas Hruby Date: Thu, 14 Jan 2010 11:30:02 +0000 (+0000) Subject: Uninitialized variable fix in VM to kernel protocol X-Git-Tag: v3.1.6~84 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=d96360e4d4e0d36f78a4990308c8223d54f80c43;p=minix.git 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. --- 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++;