aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-11-22 13:49:27 +0000
committerJustus Winter <[email protected]>2016-11-23 11:51:56 +0000
commit7856e3efaad7614979bc0b91379a0a4dcbc739d5 (patch)
tree3c766dfb8bfacf19aa3e43ecfde8a1edecaf8d80 /tests/gpgscm/scheme.c
parentg10: Avoid gratuitously loading a keyblock when it is already available (diff)
downloadgnupg-7856e3efaad7614979bc0b91379a0a4dcbc739d5.tar.gz
gnupg-7856e3efaad7614979bc0b91379a0a4dcbc739d5.zip
gpgscm: Fix initialization of 'sink'.
* tests/gpgscm/scheme.c (scheme_init_custom_alloc): Also initialize cdr. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
-rw-r--r--tests/gpgscm/scheme.c2
1 files changed, 1 insertions, 1 deletions
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;