From 7856e3efaad7614979bc0b91379a0a4dcbc739d5 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 22 Nov 2016 14:49:27 +0100 Subject: [PATCH] gpgscm: Fix initialization of 'sink'. * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Also initialize cdr. Signed-off-by: Justus Winter --- tests/gpgscm/scheme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index e011deaba..673d19928 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -5045,7 +5045,7 @@ int scheme_init_custom_alloc(scheme *sc, func_alloc malloc, func_dealloc free) { car(sc->EOF_OBJ) = cdr(sc->EOF_OBJ) = sc->EOF_OBJ; /* init sink */ typeflag(sc->sink) = (T_SINK | T_PAIR | MARK); - car(sc->sink) = sc->NIL; + car(sc->sink) = cdr(sc->sink) = sc->NIL; /* init c_nest */ sc->c_nest = sc->NIL;