diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-06-16 18:43:46 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-06-16 18:43:46 +0300 |
commit | 52acc6d5ac3e4bf32924dc0819db19c654889436 (patch) | |
tree | 8d4eea9b82bcfdc4eeafbceed2206634ef3d4c89 /src/bucket.c | |
parent | 5ea6f531857cb61946456c2582f7eaa20ceba18b (diff) | |
download | gdbm-61803fd5199f146c7ea5b641405be6c32876e53c.tar.gz gdbm-61803fd5199f146c7ea5b641405be6c32876e53c.tar.bz2 |
Version 1.5v1.15
* configure.ac: Version 1.5
* NEWS: Update.
* src/Makefile.am (VI_CURRENT): Increment to 6
* src/bucket.c (_gdbm_get_bucket): Fix the upper limit for
bucket_bits.
* src/falloc.c (push_avail_block): Fill the allocated block
with 0s.
Diffstat (limited to 'src/bucket.c')
-rw-r--r-- | src/bucket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bucket.c b/src/bucket.c index a3e8f4e..4b69bbe 100644 --- a/src/bucket.c +++ b/src/bucket.c @@ -29,7 +29,7 @@ void _gdbm_new_bucket (GDBM_FILE dbf, hash_bucket *bucket, int bits) { int index; - + /* Initialize the avail block. */ bucket->av_count = 0; @@ -146,7 +146,7 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index) if (!(bucket->count >= 0 && bucket->count <= dbf->header->bucket_elems && bucket->bucket_bits >= 0 - && bucket->bucket_bits <= GDBM_HASH_BITS)) + && bucket->bucket_bits <= dbf->header->dir_bits)) { GDBM_SET_ERRNO (dbf, GDBM_BAD_BUCKET, TRUE); return -1; |