summaryrefslogtreecommitdiffabout
path: root/src/gdbmopen.c
Side-by-side diff
Diffstat (limited to 'src/gdbmopen.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gdbmopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbmopen.c b/src/gdbmopen.c
index 03cc4f4..677f1cf 100644
--- a/src/gdbmopen.c
+++ b/src/gdbmopen.c
@@ -154,7 +154,7 @@ validate_header (gdbm_file_header const *hdr, struct stat const *st)
if (hdr->dir_bits != dir_bits)
return GDBM_BAD_HEADER;
- if (!(hdr->bucket_size > 0 && hdr->bucket_size > sizeof(hash_bucket)))
+ if (!(hdr->bucket_size > sizeof(hash_bucket)))
return GDBM_BAD_HEADER;
if (hdr->bucket_elems != bucket_element_count (hdr->bucket_size))

Return to:

Send suggestions and report system problems to the System administrator.