Explorar o código

Warning fix for uninitialized variable, by Al Stone.

Rob Landley %!s(int64=18) %!d(string=hai) anos
pai
achega
feaab8d438
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 	}
     }