(hash_init): Die if hash_initialize fails.
authorJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 21:25:08 +0000 (21:25 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 Oct 2001 21:25:08 +0000 (21:25 +0000)
src/cp-hash.c

index 4a435599604ffe56bd052add6ef3257bf049813e..10c60bf60e17401c280a1ce512bbeb507466d787 100644 (file)
@@ -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