diff options
author | Werner Koch <[email protected]> | 2014-03-06 14:28:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-03-06 14:28:42 +0000 |
commit | 191e32026f02054b1edb4f02536875462fd0b6b3 (patch) | |
tree | 0d66dfc451d781a8c45e5e6ad82b17ba0ce88579 /common/membuf.c | |
parent | Fix g10/trust.c. (diff) | |
download | gnupg-191e32026f02054b1edb4f02536875462fd0b6b3.tar.gz gnupg-191e32026f02054b1edb4f02536875462fd0b6b3.zip |
common: Fix recent commit 55656208.
* common/membuf.c (get_membuf_shrink): Fix use of LEN.
--
Oops, what a stupid bug.
Diffstat (limited to 'common/membuf.c')
-rw-r--r-- | common/membuf.c | 6 |
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; } |