]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Undo last change.
authorUlrich Drepper <drepper@redhat.com>
Fri, 20 Aug 1999 23:45:31 +0000 (23:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 20 Aug 1999 23:45:31 +0000 (23:45 +0000)
sysdeps/unix/sysv/linux/getcwd.c

index d529b9a1813f076015b8dfa85f3981e747496569..fe28e2d894d355b45480c592667615b49e304e8e 100644 (file)
@@ -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;