aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-31 11:43:00 +0000
committerJustus Winter <[email protected]>2017-01-31 17:49:27 +0000
commit85f6f60197fe56c90b663fb34db4cddf62c28c1b (patch)
tree760e92085bae983a34954c371d5dbf3c0d8e465b
parentgpgscm: Remove unused functions. (diff)
downloadlibgpg-error-85f6f60197fe56c90b663fb34db4cddf62c28c1b.tar.gz
libgpg-error-85f6f60197fe56c90b663fb34db4cddf62c28c1b.zip
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 <[email protected]>
-rw-r--r--scheme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scheme.c b/scheme.c
index 27beb3a..1801ffc 100644
--- a/scheme.c
+++ b/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);