mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
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:
parent
5ed8e9335f
commit
191e32026f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user