fix stupid bug in using memset (obs from Jos De Roo).

This commit is contained in:
Vitor Santos Costa 2010-05-06 09:08:59 +01:00
parent 4d0967b050
commit c3f1231923

View File

@ -164,7 +164,7 @@ void
Yap_InitSWIHash(void)
{
int i, j;
memset(SWI_ReverseHash, N_SWI_HASH, sizeof(swi_rev_hash));
memset(SWI_ReverseHash, 0, N_SWI_HASH*sizeof(swi_rev_hash));
for (i=0; i < N_SWI_ATOMS; i++) {
add_to_hash(i*2+1, (ADDR)SWI_Atoms[i]);
}