Menu

#1 pcname is not initialized in thing.c:free_thing_final()

open
nobody
None
5
2004-07-12
2004-07-12
Jon Mayo
No

pcname is used without being initialized in
thing.c:free_thing_final()

...
char pcname[200];
...
th->name = new_str (pcname);

pcname is set but never used in thing.c:free_thing()
...
char pcname[200];
...
strcpy (pcname, th->name);
...

Discussion


Log in to post a comment.

MongoDB Logo MongoDB