From bf0b70f10d3b46669ee4713c10f91eacc5d0a3f9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 6 Oct 2001 21:25:08 +0000 Subject: (hash_init): Die if hash_initialize fails. --- src/cp-hash.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cp-hash.c') 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 -- cgit v1.2.3-54-g00ecf