summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-08 07:13:36 +0000
committerJim Meyering <jim@meyering.net>2000-08-08 07:13:36 +0000
commita9a5efd77b78d187473b79750c131c658124f843 (patch)
treecd074756211a9c36746479e247ccf9c3fe4b9d47 /src
parentb99ee65d9feb6e7020b5afc6b670d77c83c6a5b4 (diff)
downloadcoreutils-a9a5efd77b78d187473b79750c131c658124f843.tar.xz
(remove_cwd_entries, rm): Invoke xalloc_die instead of printing our own message.
Diffstat (limited to 'src')
-rw-r--r--src/remove.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remove.c b/src/remove.c
index ab13a73ff..6b5dad09f 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -566,10 +566,10 @@ remove_cwd_entries (const struct rm_options *x)
ht = hash_initialize (HT_INITIAL_CAPACITY, NULL, hash_pjw,
hash_compare_strings, NULL);
if (ht == NULL)
- error (1, 0, _("virtual memory exhausted"));
+ xalloc_die ();
}
if (! hash_insert (ht, entry_name))
- error (1, 0, _("virtual memory exhausted"));
+ xalloc_die ();
}
else
{
@@ -883,7 +883,7 @@ The following two directories have the same inode number:\n"));
/* Put this directory in the active_dir_map. */
if (! hash_insert (active_dir_map, new_ent))
- error (1, 0, _("virtual memory exhausted"));
+ xalloc_die ();
}
#endif