* net.cc (dup_ent): Restore check for NULL input.

This commit is contained in:
Christopher Faylor
2003-09-01 16:47:03 +00:00
parent bf6269abd3
commit da43df2df0
2 changed files with 7 additions and 0 deletions

View File

@@ -449,6 +449,9 @@ dup_ent (void *old, void *src0, struct_type type)
free (old);
}
if (!src0)
return NULL;
unionent *src = (unionent *) src0;
debug_printf ("duping %sent \"%s\", %p", entnames[type],
src ? src->name : "<null!>", src);