projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adac7cd
)
(hash_init): Die if hash_initialize fails.
author
Jim Meyering
<jim@meyering.net>
Sat, 6 Oct 2001 21:25:08 +0000
(21:25 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 6 Oct 2001 21:25:08 +0000
(21:25 +0000)
src/cp-hash.c
patch
|
blob
|
history
diff --git
a/src/cp-hash.c
b/src/cp-hash.c
index 4a435599604ffe56bd052add6ef3257bf049813e..10c60bf60e17401c280a1ce512bbeb507466d787 100644
(file)
--- 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