From c3f1231923e94ca9a5271574a6a71daa8831fc13 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Thu, 6 May 2010 09:08:59 +0100 Subject: [PATCH] fix stupid bug in using memset (obs from Jos De Roo). --- library/yap2swi/yap2swi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/yap2swi/yap2swi.c b/library/yap2swi/yap2swi.c index 03c85df8a..07d962a79 100755 --- a/library/yap2swi/yap2swi.c +++ b/library/yap2swi/yap2swi.c @@ -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]); }