aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/membuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/membuf.c b/common/membuf.c
index 884c08cf3..6c9fee957 100644
--- a/common/membuf.c
+++ b/common/membuf.c
@@ -181,12 +181,12 @@ get_membuf_shrink (membuf_t *mb, size_t *len)
if (!len)
len = &dummylen;
- p = get_membuf (mb, &len);
+ p = get_membuf (mb, len);
if (!p)
return NULL;
- if (len)
+ if (*len)
{
- pp = xtryrealloc (p, len);
+ pp = xtryrealloc (p, *len);
if (pp)
p = pp;
}