fix bad frame pointer.

This commit is contained in:
Vítor Santos Costa 2012-04-17 00:21:08 +01:00
parent 40ce9feb76
commit 2cfb744b07
1 changed files with 5 additions and 0 deletions

View File

@ -1676,6 +1676,11 @@ Yap_InitYaamRegs(void)
#if defined MYDDAS_MYSQL || defined MYDDAS_ODBC
Yap_REGS.MYDDAS_GLOBAL_POINTER = NULL;
#endif
#ifdef TABLING
/* ensure that LOCAL_top_dep_fr is always valid */
if (LOCAL_top_dep_fr)
DepFr_cons_cp(LOCAL_top_dep_fr) = NORM_CP(B);
#endif
}
static Int