diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-11 04:30:45 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-11 04:30:45 -0800 |
commit | efcc64a8003d79538ffe0e85f91b2d94011c20d0 (patch) | |
tree | 5abe8bd0608b9ca4699a0f2b5dfeac6e8a96a02e /eval.c | |
parent | a32e4c21286764c013950015108d745fbdcd97ae (diff) | |
download | txr-efcc64a8003d79538ffe0e85f91b2d94011c20d0.tar.gz txr-efcc64a8003d79538ffe0e85f91b2d94011c20d0.tar.bz2 txr-efcc64a8003d79538ffe0e85f91b2d94011c20d0.zip |
* eval.c (apply): Fix regression in dwim operator: not handling
nil object properly. Since dwim now trivially delegates to apply,
apply must recognize nil.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -334,7 +334,7 @@ val apply(val fun, val arglist, val ctx_form) val arg[32], *p = arg; int variadic, fixparam, reqargs, nargs; - if (symbolp(fun)) { + if (fun && symbolp(fun)) { val binding = gethash(top_fb, fun); if (!binding) eval_error(ctx_form, lit("~s: no such function ~s"), car(ctx_form), fun, nao); |