소스 검색

revert 17821, wait for better test cases

Eric Andersen 18 년 전
부모
커밋
b7b1d3a553
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libc/stdlib/realpath.c

+ 1 - 1
libc/stdlib/realpath.c

@@ -133,7 +133,7 @@ char resolved_path[];
 				/* Make sure it's null terminated. */
 				*new_path = '\0';
 				strcpy(resolved_path, got_path);
-				return resolved_path;
+				return NULL;
 			}
 		} else {
 			/* Note: readlink doesn't add the null byte. */