aboutsummaryrefslogtreecommitdiffstats
path: root/src/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/searchpath3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd/searchpath3.c b/src/unistd/searchpath3.c
index d66cfaf..222f77a 100644
--- a/src/unistd/searchpath3.c
+++ b/src/unistd/searchpath3.c
@@ -138,13 +138,13 @@ char* searchpath3(const char* name, const char* fallback, const char* first)
free(path);
free(pathname);
- return errno = (eacces ? EACCES : ENOENT), -1;
+ return errno = (eacces ? EACCES : ENOENT), NULL;
fail:
saved_errno = errno;
free(path);
free(pathname);
errno = saved_errno;
- return -1;
+ return NULL;
}