summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 8c4f0e9..8b5be46 100644
--- a/parser.c
+++ b/parser.c
@@ -73,7 +73,7 @@ parse(int fd, Biobuf *bio, int querymode)
currentmod = usermodule;
Term *result = prologtext(querymode);
- if(querymode){
+ if(querymode && result){
uvlong id = 1;
result = copyterm(result, &id);
}