hash: once again explicitly disallow insertion of NULL
authorJim Meyering <meyering@redhat.com>
Sun, 4 Jul 2010 08:54:38 +0000 (10:54 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 4 Jul 2010 09:00:59 +0000 (11:00 +0200)
commitfbc47512f3f8e1533a28b4e3eca67938a2f9ebe7
treef14d019b6a53d2413477932cf8e0e60cb2a63c26
parent7773f84fe1aa3bb17defad704ee87f2615894ae4
hash: once again explicitly disallow insertion of NULL

* lib/hash.c (hash_insert0): Reinstate just-removed test:
inserting a NULL pointer cannot work with these functions.
Add a comment with details.
This reverts part of the 2010-07-01 commit, 5bef1a35
"hash: extend module to deal with non-pointer keys".
ChangeLog
lib/hash.c