summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-30 14:20:17 +0000
committerJim Meyering <jim@meyering.net>1997-11-30 14:20:17 +0000
commit66fbc2c8f63f572edad680248cf352d9f692edf3 (patch)
tree21fd201e24949f4607d9729cdd3f7ef87791dbcd /lib
parent2807179898142a9c433756b406e6336bdb4428a9 (diff)
downloadcoreutils-66fbc2c8f63f572edad680248cf352d9f692edf3.tar.xz
(savedir): Revert last change. malloc always
works when called with zero, because we use the wrapper if the system version is lacking.
Diffstat (limited to 'lib')
-rw-r--r--lib/savedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/savedir.c b/lib/savedir.c
index 4c07bffc2..76634eef4 100644
--- a/lib/savedir.c
+++ b/lib/savedir.c
@@ -87,7 +87,7 @@ savedir (dir, name_size)
if (dirp == NULL)
return NULL;
- name_space = (char *) malloc (name_size ? name_size : 1);
+ name_space = (char *) malloc (name_size);
if (name_space == NULL)
{
closedir (dirp);