we had args already (no need for argv0)

improve error handling in YAP_ReadBuffer
This commit is contained in:
Vitor Santos Costa
2009-10-26 10:42:19 +00:00
parent 96da71b514
commit 4c8eb33e06
4 changed files with 34 additions and 6 deletions

View File

@@ -6130,7 +6130,7 @@ Yap_StringToTerm(char *s,Term *tp)
}
t = Yap_Parse();
TR = TR_before_parse;
if (Yap_ErrorMessage) {
if (!t && !Yap_ErrorMessage) {
if (tp) {
*tp = syntax_error(tokstart, sno);
}