summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2010-10-04 21:02:10 -0700
committerKaz Kylheku <kaz@kylheku.com>2010-10-04 21:02:10 -0700
commit38fe788d9a04ae061dc722f313fd9d222c73b709 (patch)
tree130261a1f991c32d9bb8625f5a1abb52ac76f561 /match.c
parent20bec5ff6a3bfb4ffa7ae475f762a20ac42df41b (diff)
downloadtxr-38fe788d9a04ae061dc722f313fd9d222c73b709.tar.gz
txr-38fe788d9a04ae061dc722f313fd9d222c73b709.tar.bz2
txr-38fe788d9a04ae061dc722f313fd9d222c73b709.zip
* match.c (match_files): Bugfix. A (sub)query that runs out of data
lines to match must fail. Extra data lines relative to the spec are tolerated; extra spec lines unmet by data aren't.
Diffstat (limited to 'match.c')
-rw-r--r--match.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/match.c b/match.c
index 32418442..27234fd0 100644
--- a/match.c
+++ b/match.c
@@ -1726,6 +1726,9 @@ repeat_spec_same_data:
return nil;
bindings = new_bindings;
+ } else {
+ debuglf(spec_linenum, lit("spec ran out of data"), nao);
+ return nil;
}
}