fix lost buffer

This commit is contained in:
U-WIN-ENP104VVO3U\Vítor Santos Costa 2011-06-06 12:29:13 +01:00
parent 029bf6e400
commit eb700c647d

View File

@ -329,7 +329,10 @@ initIO()
int i; int i;
#ifdef __YAP_PROLOG__ #ifdef __YAP_PROLOG__
IOFUNCTIONS buf;
buf = GD->os.iofunctions;
memset(GD, 0, sizeof(gds_t)); memset(GD, 0, sizeof(gds_t));
GD->os.iofunctions = buf;
memset(LD, 0, sizeof(PL_local_data_t)); memset(LD, 0, sizeof(PL_local_data_t));
#endif #endif
streamAliases = newHTable(16); streamAliases = newHTable(16);