diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 6a2d30761..e5eecf705 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 { |