[PATCH libksba 2/7] tests: fix print_sexp and print_sexp_hex functions
Dmitry Eremin-Solenikov
dbaryshkov at gmail.com
Sat Jul 12 13:11:14 CEST 2014
* tests/t-common.h (print_sexp, print_sexp_hex): advance pointer on
closing brace.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
---
tests/t-common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/t-common.h b/tests/t-common.h
index 71512a9..cf82f3e 100644
--- a/tests/t-common.h
+++ b/tests/t-common.h
@@ -110,6 +110,7 @@ print_sexp (ksba_const_sexp_t p)
else if (*p == ')')
{
putchar (*p);
+ p++;
if (--level <= 0 )
return;
}
@@ -176,6 +177,7 @@ print_sexp_hex (ksba_const_sexp_t p)
else if (*p == ')')
{
putchar (*p);
+ p++;
if (--level <= 0 )
return;
}
--
2.0.0
More information about the Gnupg-devel
mailing list