From: Daniel Stenberg Date: Mon, 18 Sep 2000 21:16:27 +0000 (+0000) Subject: GetHost() now should return NULL when it fails, even for Tru64 unix X-Git-Tag: curl-7_3~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=398e3f423f3448064143ece0e9b79185f06f8097;p=thirdparty%2Fcurl.git GetHost() now should return NULL when it fails, even for Tru64 unix --- diff --git a/lib/hostip.c b/lib/hostip.c index 6a2d307613..e5eecf705f 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -165,6 +165,7 @@ struct hostent *GetHost(struct UrlData *data, #endif { infof(data, "gethostbyname_r(2) failed for %s\n", hostname); + h = NULL; /* set return code to NULL */ } #else else {