summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/hash/hash_bigkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/db/hash/hash_bigkey.c')
-rw-r--r--lib/libc/db/hash/hash_bigkey.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/db/hash/hash_bigkey.c b/lib/libc/db/hash/hash_bigkey.c
index 3465802..c70b375 100644
--- a/lib/libc/db/hash/hash_bigkey.c
+++ b/lib/libc/db/hash/hash_bigkey.c
@@ -123,7 +123,7 @@ __big_insert(hashp, bufp, key, val)
if (!bufp)
return (-1);
n = p[0];
- if (!key_size)
+ if (!key_size) {
if (FREESPACE(p)) {
move_bytes = MIN(FREESPACE(p), val_size);
off = OFFSET(p) - move_bytes;
@@ -136,6 +136,7 @@ __big_insert(hashp, bufp, key, val)
OFFSET(p) = off;
} else
p[n - 2] = FULL_KEY;
+ }
p = (u_int16_t *)bufp->page;
cp = bufp->page;
bufp->flags |= BUF_MOD;
OpenPOWER on IntegriCloud