mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:51:11 +00:00
Added a memset() to prevent a debugger segfault caused by
uninitialized pointers in the stabs lookup tables.
This commit is contained in:
parent
15776efc64
commit
7e5b3b3d83
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue