diff options
author | Jim Meyering <jim@meyering.net> | 1997-11-30 14:20:17 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-11-30 14:20:17 +0000 |
commit | 66fbc2c8f63f572edad680248cf352d9f692edf3 (patch) | |
tree | 21fd201e24949f4607d9729cdd3f7ef87791dbcd /lib | |
parent | 2807179898142a9c433756b406e6336bdb4428a9 (diff) | |
download | coreutils-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.c | 2 |
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); |