summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/du.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/du.c b/src/du.c
index 9bfe56a91..38f25ed26 100644
--- a/src/du.c
+++ b/src/du.c
@@ -550,19 +550,13 @@ count_entry (const char *ent, int top, dev_t last_dev, int depth)
return 0;
}
- errno = 0;
name_space = savedir (".", stat_buf.st_size);
if (name_space == NULL)
{
- if (errno)
- {
- error (0, errno, "%s", path->text);
- pop_dir (cwd, path->text);
- exit_status = 1;
- return 0;
- }
- else
- error (1, 0, _("virtual memory exhausted"));
+ error (0, errno, "%s", path->text);
+ pop_dir (cwd, path->text);
+ exit_status = 1;
+ return 0;
}
/* Remember the current path. */