summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-03-28 19:13:06 +0000
committerRob Landley <rob@landley.net>2007-03-28 19:13:06 +0000
commitfeaab8d4388f46e34e1d8a914d67ffd2da7022cd (patch)
tree7168872d63a93ae49c43cb9af84baad6543f4284 /libc
parentf211204dd3eee466f5f66d06377e1db4a9424ac3 (diff)
Warning fix for uninitialized variable, by Al Stone.
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/resolv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 973b787ec..c2ff58242 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1696,6 +1696,7 @@ int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen,
__open_etc_hosts(&__gethostent_fp);
if (__gethostent_fp == NULL) {
*result=NULL;
+ ret=TRY_AGAIN;
goto DONE;
}
}