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/falloc.c | |
parent | 5ea6f531857cb61946456c2582f7eaa20ceba18b (diff) | |
download | gdbm-52acc6d5ac3e4bf32924dc0819db19c654889436.tar.gz gdbm-52acc6d5ac3e4bf32924dc0819db19c654889436.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/falloc.c')
-rw-r--r-- | src/falloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/falloc.c b/src/falloc.c index 2f21ebe..6571d9b 100644 --- a/src/falloc.c +++ b/src/falloc.c @@ -292,7 +292,7 @@ push_avail_block (GDBM_FILE dbf) av_adr = new_loc.av_adr; /* Split the header block. */ - temp = malloc (av_size); + temp = calloc (1, av_size); if (temp == NULL) { GDBM_SET_ERRNO (dbf, GDBM_MALLOC_ERROR, TRUE); |