Browse Source

Warning fix for uninitialized variable, by Al Stone.

Rob Landley 17 years ago
parent
commit
feaab8d438
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/inet/resolv.c

+ 1 - 0
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;
 	}
     }