diff options
author | Justus Winter <[email protected]> | 2016-10-14 09:17:50 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-10-17 08:49:03 +0000 |
commit | c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794 (patch) | |
tree | 928166b3311641342160896398b7587164fa2d61 /tests | |
parent | doc: Document how to manually shut down gpg-agent. (diff) | |
download | gnupg-c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794.tar.gz gnupg-c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794.zip |
gpgscm: Initialize nesting stack.
* tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
stack.
Fixes-commit: f2249b737055f84842778285bbeff5e61fa55225
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gpgscm/scheme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index 5a85063ee..0e31dc55c 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -4765,6 +4765,7 @@ int scheme_init_custom_alloc(scheme *sc, func_alloc malloc, func_dealloc free) { sc->save_inport=sc->NIL; sc->loadport=sc->NIL; sc->nesting=0; + memset (sc->nesting_stack, 0, sizeof sc->nesting_stack); sc->interactive_repl=0; sc->strbuff = sc->malloc(STRBUFFSIZE); if (sc->strbuff == 0) { |