initialise LOCAL in system_malloc (obs from Jose Santos).

This commit is contained in:
Vitor Santos Costa 2009-11-19 08:25:08 +00:00
parent d9016fa650
commit d476e36a90
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ static void
InitHeap(void)
{
Yap_heap_regs = (struct various_codes *)calloc(1, sizeof(struct various_codes));
#if defined(YAPOR) || defined(TABLING)
LOCAL = REMOTE; /* point to the first area */
#endif /* YAPOR || TABLING */
}
void