From 191e32026f02054b1edb4f02536875462fd0b6b3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 6 Mar 2014 15:28:42 +0100 Subject: [PATCH] common: Fix recent commit 55656208. * common/membuf.c (get_membuf_shrink): Fix use of LEN. -- Oops, what a stupid bug. --- common/membuf.c | 6 +++--- 1 file 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; }