summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-20 23:45:31 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-20 23:45:31 +0000
commitc7eecb53b20149a5ee437252a80cd24d9cb558d6 (patch)
tree19cc284167822042a1fd6d5f72f529d17b92c1f4 /sysdeps
parenta2c3a8a75485aa060f7fa8291298b3ab02c44250 (diff)
Undo last change.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index d529b9a181..fe28e2d894 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -58,7 +58,7 @@ __getcwd (char *buf, size_t size)
if (no_syscall_getcwd && !have_new_dcache)
return generic_getcwd (buf, size);
- if (size <= 0)
+ if (size == 0)
{
if (buf != NULL)
{
@@ -150,7 +150,7 @@ __getcwd (char *buf, size_t size)
__set_errno (save_errno);
/* Don't put restrictions on the length of the path unless the user does. */
- if (size <= 0)
+ if (size == 0)
{
free (path);
path = NULL;
@@ -158,7 +158,7 @@ __getcwd (char *buf, size_t size)
result = generic_getcwd (path, size);
- if (result == NULL && buf == NULL && size > 0)
+ if (result == NULL && buf == NULL && size != 0)
free (path);
return result;