diff options
author | Jim Meyering <jim@meyering.net> | 2001-10-06 21:25:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-10-06 21:25:08 +0000 |
commit | bf0b70f10d3b46669ee4713c10f91eacc5d0a3f9 (patch) | |
tree | af5f4c18cd93fab4b5285ac9b569e826cbd23f40 | |
parent | adac7cd0e314846d4fab311468ed89052dadcf77 (diff) | |
download | coreutils-bf0b70f10d3b46669ee4713c10f91eacc5d0a3f9.tar.xz |
(hash_init): Die if hash_initialize fails.
-rw-r--r-- | src/cp-hash.c | 2 |
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 |