aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/stdlib/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/realpath.c b/libc/stdlib/realpath.c
index d81e9a08a..63f788240 100644
--- a/libc/stdlib/realpath.c
+++ b/libc/stdlib/realpath.c
@@ -127,7 +127,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. */