From e4306ba28e21a2d513c16c142382c9115f9e777b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Thu, 25 Sep 2014 09:47:38 +0100 Subject: [PATCH] fix qsave_module --- C/qlyr.c | 2 +- C/qlyw.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/C/qlyr.c b/C/qlyr.c index 1186d0546..b4c2f7845 100755 --- a/C/qlyr.c +++ b/C/qlyr.c @@ -193,7 +193,7 @@ InsertPredEntry(PredEntry *op, PredEntry *pe) import_pred_entry_hash_entry_t *p; if (LOCAL_ImportPredEntryHashTableSize == 0) - return NULL; + return; hash = (CELL)(op) % LOCAL_ImportPredEntryHashTableSize; p = LOCAL_ImportPredEntryHashChain[hash]; while (p) { diff --git a/C/qlyw.c b/C/qlyw.c index dccb81aeb..16d3c465e 100755 --- a/C/qlyw.c +++ b/C/qlyw.c @@ -922,7 +922,6 @@ p_save_module_preds( USES_REGS1 ) Yap_Error(TYPE_ERROR_ATOM,tmod,"save_module/2"); return FALSE; } - save_header( stream ); return save_module(stream, tmod) != 0; }