* net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf.
This commit is contained in:
parent
f5394c9560
commit
b364b39867
@ -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>
|
||||
|
||||
* path.cc (path_conv::check): Treat ENOSHARE similarly to ENOENT when
|
||||
|
@ -389,7 +389,7 @@ dup_ent (void *old, void *src0, struct_type type)
|
||||
if (old)
|
||||
{
|
||||
debug_printf ("freeing old %sent structure \"%s\" %p\n", entnames[type],
|
||||
((unionent *) old)->name, old);
|
||||
old ? ((unionent *) old)->name : "<null!>", old);
|
||||
free (old);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user