From 3f26a0f2a1f699e628136ec5be6178b5ab40fc44 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 3 Jul 2021 21:16:58 +0000 Subject: Make the goalstack global just like the choicestack --- repl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'repl.c') diff --git a/repl.c b/repl.c index bd584eb..bf08164 100644 --- a/repl.c +++ b/repl.c @@ -15,6 +15,8 @@ repl(Term *database) print("?- "); Term *query = parse(fd, nil, 1); Binding *bindings = nil; + choicestack = nil; + goalstack = nil; /* should free old choicestack and goalstack */ int success; FindMore: success = evalquery(database, query, &bindings); -- cgit v1.2.3