From: Christopher Faylor Date: Wed, 9 Mar 2005 22:38:09 +0000 (+0000) Subject: * net.cc (dup_ent): Revert previous stupid change. X-Git-Tag: msnyder-tracepoint-checkpoint-branchpoint~317 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8b7de010ab664867b529415a0167047d1437b883;p=newlib-cygwin.git * net.cc (dup_ent): Revert previous stupid change. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d664f1c2d..a7c6e409f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -4,6 +4,10 @@ (handle_sigprocmask): Ditto. Check "how" for being a valid "how" value. Fix call order in case of wrong "how" value. +2005-03-09 Christopher Faylor + + * net.cc (dup_ent): Revert previous stupid change. + 2005-03-09 Christopher Faylor * net.cc (dup_ent): Avoid dereferencing a null pointer in a debug_printf. diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index ed52807d6..3fee9eb91 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -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], - old ? ((unionent *) old)->name : "", old); + ((unionent *) old)->name, old); free (old); }