changeset 14537:f832c3ec3e4b

initialize modify_ldt struct to 0.
author reimar
date Wed, 19 Jan 2005 17:03:59 +0000
parents 6f13379b1464
children 00c3c4111017
files loader/ldt_keeper.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/ldt_keeper.c	Wed Jan 19 12:56:16 2005 +0000
+++ b/loader/ldt_keeper.c	Wed Jan 19 17:03:59 2005 +0000
@@ -201,6 +201,7 @@
 	return NULL;
     }
     *(void**)((char*)ldt_fs->fs_seg+0x18) = ldt_fs->fs_seg;
+    memset(&array, 0, sizeof(array));
     array.base_addr=(int)ldt_fs->fs_seg;
     array.entry_number=TEB_SEL_IDX;
     array.limit=array.base_addr+getpagesize()-1;