mirror of
git://git.gnupg.org/gnupg.git
synced 2024-09-22 15:11:41 +02:00
gpgscm: Initialize nesting stack.
* tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
stack.
Fixes-commit: f2249b7370
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
869c06efa7
commit
c2e713d9e2
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user