diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-07 23:04:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-07 23:04:26 -0700 |
commit | 6b831477fae6e4fc69817d222482cb9f5d8cc760 (patch) | |
tree | 2c85802617b4ef19cb31bc2839d8ede723f4921d /match.c | |
parent | d73ddba9be79debbc96769de34d80710f08ae0c9 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |