handle empty sequence of clauses
This commit is contained in:
parent
bd5771eb59
commit
b5cc597ab8
@ -8246,6 +8246,7 @@ Yap_absmi(int inp)
|
|||||||
LogUpdIndex *cl = PREG->u.Illss.I;
|
LogUpdIndex *cl = PREG->u.Illss.I;
|
||||||
PredEntry *ap = cl->ClPred;
|
PredEntry *ap = cl->ClPred;
|
||||||
|
|
||||||
|
if (!cl) { FAIL(); } /* in case the index is empty */
|
||||||
if (ap->LastCallOfPred != LUCALL_EXEC) {
|
if (ap->LastCallOfPred != LUCALL_EXEC) {
|
||||||
/*
|
/*
|
||||||
only increment time stamp if we are working on current time
|
only increment time stamp if we are working on current time
|
||||||
|
Reference in New Issue
Block a user