From b7b1d3a553f7ea617e4f3520419beca562c102f0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 8 Feb 2007 21:07:26 +0000 Subject: revert 17821, wait for better test cases --- libc/stdlib/realpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/realpath.c b/libc/stdlib/realpath.c index 779aa258e..aae8580a5 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 resolved_path; + return NULL; } } else { /* Note: readlink doesn't add the null byte. */ -- cgit v1.2.3