* net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.

This commit is contained in:
Christopher Faylor 2005-03-09 20:56:44 +00:00
parent f5394c9560
commit b364b39867
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-03-09 Christopher Faylor <cgf@timesys.com>
* net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.
2005-03-09 Christopher Faylor <cgf@timesys.com> 2005-03-09 Christopher Faylor <cgf@timesys.com>
* path.cc (path_conv::check): Treat ENOSHARE similarly to ENOENT when * path.cc (path_conv::check): Treat ENOSHARE similarly to ENOENT when

View File

@ -389,7 +389,7 @@ dup_ent (void *old, void *src0, struct_type type)
if (old) if (old)
{ {
debug_printf ("freeing old %sent structure \"%s\" %p\n", entnames[type], debug_printf ("freeing old %sent structure \"%s\" %p\n", entnames[type],
((unionent *) old)->name, old); old ? ((unionent *) old)->name : "<null!>", old);
free (old); free (old);
} }