瀏覽代碼

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. */
 				/* Make sure it's null terminated. */
 				*new_path = '\0';
 				*new_path = '\0';
 				strcpy(resolved_path, got_path);
 				strcpy(resolved_path, got_path);
-				return resolved_path;
+				return NULL;
 			}
 			}
 		} else {
 		} else {
 			/* Note: readlink doesn't add the null byte. */
 			/* Note: readlink doesn't add the null byte. */