fix unallocated variable in overflow.
This commit is contained in:
parent
007a1346f4
commit
751426c610
@ -3305,7 +3305,9 @@ Yap_PredIsIndexable(PredEntry *ap, UInt NSlots)
|
|||||||
int setjres;
|
int setjres;
|
||||||
struct intermediates cint;
|
struct intermediates cint;
|
||||||
|
|
||||||
|
|
||||||
cint.CurrentPred = ap;
|
cint.CurrentPred = ap;
|
||||||
|
cint.code_addr = NULL;
|
||||||
Yap_Error_Size = 0;
|
Yap_Error_Size = 0;
|
||||||
|
|
||||||
if ((setjres = setjmp(cint.CompilerBotch)) == 3) {
|
if ((setjres = setjmp(cint.CompilerBotch)) == 3) {
|
||||||
@ -4371,6 +4373,7 @@ ExpandIndex(PredEntry *ap, int ExtraArgs) {
|
|||||||
int cb;
|
int cb;
|
||||||
struct intermediates cint;
|
struct intermediates cint;
|
||||||
|
|
||||||
|
cint.code_addr = NULL;
|
||||||
if ((cb = setjmp(cint.CompilerBotch)) == 3) {
|
if ((cb = setjmp(cint.CompilerBotch)) == 3) {
|
||||||
restore_machine_regs();
|
restore_machine_regs();
|
||||||
/* grow stack */
|
/* grow stack */
|
||||||
|
Reference in New Issue
Block a user