Browse Source

revert 17821, wait for better test cases

Eric Andersen 18 years ago
parent
commit
b7b1d3a553
1 changed files with 1 additions and 1 deletions
  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. */