OSDN Git Service

Warning fix for uninitialized variable, by Al Stone.
authorRob Landley <rob@landley.net>
Wed, 28 Mar 2007 19:13:06 +0000 (19:13 -0000)
committerRob Landley <rob@landley.net>
Wed, 28 Mar 2007 19:13:06 +0000 (19:13 -0000)
libc/inet/resolv.c

index 973b787..c2ff582 100644 (file)
@@ -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;
        }
     }