Commit 7e5b3b3d authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Added a memset() to prevent a debugger segfault caused by

uninitialized pointers in the stabs lookup tables.
parent 15776efc
......@@ -162,6 +162,7 @@ DEBUG_FileSubNr2StabEnum(int filenr,int subnr) {
stab_types = (struct datatype **) xrealloc(stab_types,
num_stab_types * sizeof(struct datatype *)
);
memset( stab_types + curtypenum, 0, sizeof(struct datatype *) * (num_stab_types - curtypenum) );
}
//fprintf(stderr,"(%d,%d) is %d\n",filenr,subnr,typenums[filenr][subnr]);
return typenums[filenr][subnr];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment