]> Savannah Git Hosting - gnulib.git/commit
hash: set errno on failure
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2023 15:34:44 +0000 (08:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2023 17:15:03 +0000 (10:15 -0700)
commit957b8cd4923abb482ecb4c225205f2b8c3cec18c
tree658e0adcbffff7b05730efa3e02758428adf3a45
parent04c519234ca7838e7874d205cbbf93dd1ef3399b
hash: set errno on failure

* lib/hash.c: Include errno.h.
(compute_bucket_size, hash_initialize, hash_rehash)
(hash_insert_if_absent): Set errno reliably on failure.
(hash_free): Preserve errno, like plain 'free'.
* modules/hash (Depends-on): Depend on calloc-posix,
free-posix, malloc-posix, so that errno is set reliably.
ChangeLog
lib/hash.c
lib/hash.h
modules/hash