be more careful about error handling when storing DB terms

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@399 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2002-03-07 05:13:21 +00:00
parent 43cad85ace
commit 798bdbdf39
13 changed files with 997 additions and 1041 deletions

View File

@@ -3968,6 +3968,8 @@ p_enqueue(void)
} else
father_key = (db_queue *)DBRefOfTerm(Father);
x = StoreTermInDB(2, 2);
if (x == NULL)
return(FALSE);
x->Parent = NULL;
WRITE_LOCK(father_key->QRWLock);
if (father_key->LastInQueue != NULL)