diff options
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/realpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/realpath.c b/libc/stdlib/realpath.c index aae8580a5..779aa258e 100644 --- a/libc/stdlib/realpath.c +++ b/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 NULL; + return resolved_path; } } else { /* Note: readlink doesn't add the null byte. */ |