diff --git a/debugger/stabs.c b/debugger/stabs.c index 8fb9c96f847..3f8e6d36763 100644 --- a/debugger/stabs.c +++ b/debugger/stabs.c @@ -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];