소스 검색

Warning fix for uninitialized variable, by Al Stone.

Rob Landley 18 년 전
부모
커밋
feaab8d438
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
 	}
     }