If size is zero here, buf must be zero.
+2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
+ If size is zero here, buf must be zero.
+
2007-03-19 Simon Josefsson <simon@josefsson.org>
* des.c: Remove weak_keys_chksum. Reported by Bruno Haible
used = dir + allocated - dirp;
memmove (dir, dirp, used);
- if (buf == NULL && size == 0)
+ if (size == 0)
/* Ensure that the buffer is only as large as necessary. */
buf = realloc (dir, used);