[git] GnuPG - branch, master, updated. gnupg-2.1.0beta3-315-g191e320

by Werner Koch cvs at cvs.gnupg.org
Thu Mar 6 15:29:42 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  191e32026f02054b1edb4f02536875462fd0b6b3 (commit)
      from  5ed8e9335fb886d7ddc86728d8481e5e47485531 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 191e32026f02054b1edb4f02536875462fd0b6b3
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Mar 6 15:28:42 2014 +0100

    common: Fix recent commit 55656208.
    
    * common/membuf.c (get_membuf_shrink): Fix use of LEN.
    --
    
    Oops, what a stupid bug.

diff --git a/common/membuf.c b/common/membuf.c
index 884c08c..6c9fee9 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;
     }

-----------------------------------------------------------------------

Summary of changes:
 common/membuf.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list