mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-16 08:33:24 +02: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)
|
if (!len)
|
||||||
len = &dummylen;
|
len = &dummylen;
|
||||||
|
|
||||||
p = get_membuf (mb, &len);
|
p = get_membuf (mb, len);
|
||||||
if (!p)
|
if (!p)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (len)
|
if (*len)
|
||||||
{
|
{
|
||||||
pp = xtryrealloc (p, len);
|
pp = xtryrealloc (p, *len);
|
||||||
if (pp)
|
if (pp)
|
||||||
p = pp;
|
p = pp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user