From: Jim Meyering Date: Sat, 6 Oct 2001 21:25:08 +0000 (+0000) Subject: (hash_init): Die if hash_initialize fails. X-Git-Tag: FILEUTILS-4_1_1~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf0b70f10d3b46669ee4713c10f91eacc5d0a3f9;p=thirdparty%2Fcoreutils.git (hash_init): Die if hash_initialize fails. --- diff --git a/src/cp-hash.c b/src/cp-hash.c index 4a43559960..10c60bf60e 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