summaryrefslogtreecommitdiff
path: root/src/cp-hash.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-06 21:25:08 +0000
committerJim Meyering <jim@meyering.net>2001-10-06 21:25:08 +0000
commitbf0b70f10d3b46669ee4713c10f91eacc5d0a3f9 (patch)
treeaf5f4c18cd93fab4b5285ac9b569e826cbd23f40 /src/cp-hash.c
parentadac7cd0e314846d4fab311468ed89052dadcf77 (diff)
downloadcoreutils-bf0b70f10d3b46669ee4713c10f91eacc5d0a3f9.tar.xz
(hash_init): Die if hash_initialize fails.
Diffstat (limited to 'src/cp-hash.c')
-rw-r--r--src/cp-hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c
index 4a4355996..10c60bf60 100644
--- a/src/cp-hash.c
+++ b/src/cp-hash.c
@@ -135,6 +135,8 @@ hash_init (void)
src_to_dest = hash_initialize (INITIAL_TABLE_SIZE, NULL,
src_to_dest_hash,
src_to_dest_compare, free);
+ if (src_to_dest == NULL)
+ xalloc_die ();
}
/* Reset the hash structure in the global variable `htab' to