summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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