|
From: Dirk M. <mu...@kd...> - 2003-11-19 22:07:17
|
CVS commit by mueller:
make it compile on non-C90 compilers. Thanks for the patch.
CCMAIL: 685...@bu...
M +5 -3 vg_symtab2.c 1.59
--- valgrind/coregrind/vg_symtab2.c #1.58:1.59
@@ -673,4 +673,6 @@ void read_symtab( SegInfo* si, Char* tab
Addr sym_addr;
RiSym risym;
+ Char* t0;
+ Char* name;
if (o_strtab == NULL || o_symtab == NULL) {
@@ -785,8 +787,8 @@ void read_symtab( SegInfo* si, Char* tab
/* If we reach here, it's an interesting symbol; record it. */
- Char* t0 = sym->st_name
+ t0 = sym->st_name
? (Char*)(o_strtab+sym->st_name)
: (Char*)"NONAME";
- Char *name = VG_(addStr) ( si, t0, -1 );
+ name = VG_(addStr) ( si, t0, -1 );
vg_assert(name != NULL
/* && 0==VG_(strcmp)(t0,&vg_strtab[nmoff]) */ );
|