common: Fix recent commit 55656208.

* common/membuf.c (get_membuf_shrink): Fix use of LEN.
--

Oops, what a stupid bug.
This commit is contained in:
Werner Koch 2014-03-06 15:28:42 +01:00
parent 5ed8e9335f
commit 191e32026f
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}