This commit is contained in:
Vitor Santos Costa
2018-02-01 14:55:09 +00:00
parent 24d895d100
commit 5ea47853ac
3 changed files with 26 additions and 17 deletions

View File

@@ -845,7 +845,7 @@ bool Yap_CVT_Text(seq_tv_t *inp, seq_tv_t *out USES_REGS) {
// cnt++;
int l = push_text_stack();
buf = Yap_readText(inp PASS_REGS);
if (!buf) {
if (!buf || buf[0] == '\0') {
pop_text_stack(l);
return 0L;
}