mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-26 02:30:35 +02:00
(savedir): Revert last change. malloc always
works when called with zero, because we use the wrapper if the system version is lacking.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user