1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpgscm: Initialize nesting stack.

* tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
stack.

Fixes-commit: f2249b737055f84842778285bbeff5e61fa55225
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-10-14 11:17:50 +02:00
parent 869c06efa7
commit c2e713d9e2

View File

@ -4765,6 +4765,7 @@ int scheme_init_custom_alloc(scheme *sc, func_alloc malloc, func_dealloc free) {
sc->save_inport=sc->NIL; sc->save_inport=sc->NIL;
sc->loadport=sc->NIL; sc->loadport=sc->NIL;
sc->nesting=0; sc->nesting=0;
memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);
sc->interactive_repl=0; sc->interactive_repl=0;
sc->strbuff = sc->malloc(STRBUFFSIZE); sc->strbuff = sc->malloc(STRBUFFSIZE);
if (sc->strbuff == 0) { if (sc->strbuff == 0) {