fix some crashes on abort
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@307 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
cd843ac559
commit
b53ca0ed7b
@ -315,7 +315,8 @@ Error (yap_error_number type, Term where, char *format,...)
|
||||
/* disallow recursive error handling */
|
||||
if (PrologMode & InErrorMode)
|
||||
return(P);
|
||||
where = Deref(where);
|
||||
if (type != PURE_ABORT)
|
||||
where = Deref(where);
|
||||
if (IsVarTerm(where)) {
|
||||
/* we must be careful someone gave us a copy to a local variable */
|
||||
Term t = MkVarTerm();
|
||||
|
Reference in New Issue
Block a user