summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-07 23:04:26 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-10-07 23:04:26 -0700
commit6b831477fae6e4fc69817d222482cb9f5d8cc760 (patch)
tree2c85802617b4ef19cb31bc2839d8ede723f4921d /match.c
parentd73ddba9be79debbc96769de34d80710f08ae0c9 (diff)
downloadtxr-6b831477fae6e4fc69817d222482cb9f5d8cc760.tar.gz
txr-6b831477fae6e4fc69817d222482cb9f5d8cc760.tar.bz2
txr-6b831477fae6e4fc69817d222482cb9f5d8cc760.zip
* match.c (match_files): Fixed spectacular bug in function calling,
dating back to before October 2009 when txr was put into git. Basically, unbound variables were not handled right after the function return, due to the increment step being wrongly written as ``piter = cdr(aiter)'' in the for loop that processes the ub_p_a_pairs. Evil cut and paste!
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index 3d5f3531..e01be988 100644
--- a/match.c
+++ b/match.c
@@ -2178,7 +2178,7 @@ repeat_spec_same_data:
{
cons_bind (new_bindings, success, result);
- for (piter = ub_p_a_pairs; piter; piter = cdr(aiter))
+ for (piter = ub_p_a_pairs; piter; piter = cdr(piter))
{
cons_bind (param, arg, car(piter));