aboutsummaryrefslogtreecommitdiff
path: root/db/hash/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'db/hash/hash.c')
-rw-r--r--db/hash/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/hash/hash.c b/db/hash/hash.c
index 4ccb992bb7..99592eac51 100644
--- a/db/hash/hash.c
+++ b/db/hash/hash.c
@@ -873,7 +873,7 @@ hash_realloc(p_ptr, oldsize, newsize)
{
register void *p;
- if (p = malloc(newsize)) {
+ if ((p = malloc(newsize))) {
memmove(p, *p_ptr, oldsize);
memset((char *)p + oldsize, 0, newsize - oldsize);
free(*p_ptr);