From 751426c610d39da86219cf51a5ddfc71bbd0a988 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Fri, 27 Mar 2009 14:05:27 +0000 Subject: [PATCH] fix unallocated variable in overflow. --- C/index.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C/index.c b/C/index.c index c246d93f5..1f8aea3fb 100644 --- a/C/index.c +++ b/C/index.c @@ -3305,7 +3305,9 @@ Yap_PredIsIndexable(PredEntry *ap, UInt NSlots) int setjres; struct intermediates cint; + cint.CurrentPred = ap; + cint.code_addr = NULL; Yap_Error_Size = 0; if ((setjres = setjmp(cint.CompilerBotch)) == 3) { @@ -4371,6 +4373,7 @@ ExpandIndex(PredEntry *ap, int ExtraArgs) { int cb; struct intermediates cint; + cint.code_addr = NULL; if ((cb = setjmp(cint.CompilerBotch)) == 3) { restore_machine_regs(); /* grow stack */