[Pkg-gnupg-commit] [gnupg2] 41/166: gpgscm: Fix build with object list.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Mar 16 22:33:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00
Author: Justus Winter <justus at g10code.com>
Date:   Tue Jan 31 12:43:00 2017 +0100

    gpgscm: Fix build with object list.
    
    * tests/gpgscm/scheme.c (oblist_add_by_name): Provide preallocation
    information if USE_OBJECT_LIST.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/gpgscm/scheme.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 27beb3a..1801ffc 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -1151,6 +1151,7 @@ static INLINE pointer oblist_find_by_name(scheme *sc, const char *name)
 /* returns the new symbol */
 static pointer oblist_add_by_name(scheme *sc, const char *name)
 {
+#define oblist_add_by_name_allocates	3
   pointer x;
 
   x = immutable_cons(sc, mk_string(sc, name), sc->NIL);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list