aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/gpgscm/scheme.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 0e31dc55c..44dd16559 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -2041,7 +2041,9 @@ static void atom2str(scheme *sc, pointer l, int f, char **pp, int *plen) {
}
} else if (is_string(l)) {
if (!f) {
- p = strvalue(l);
+ *pp = strvalue(l);
+ *plen = strlength(l);
+ return;
} else { /* Hack, uses the fact that printing is needed */
*pp=sc->strbuff;
*plen=0;