summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2022-02-04 21:51:36 -0500
committerKaz Kylheku <kaz@kylheku.com>2022-02-05 11:29:09 -0800
commit4b5e53a0451dc4198399312dcf5ccf097ea53e83 (patch)
treef6e0d72bddc154a2bb6ee7784cc31cbd36736865 /txr.c
parentf625db09173f6a0e26bd4c293273899892f3d405 (diff)
downloadtxr-4b5e53a0451dc4198399312dcf5ccf097ea53e83.tar.gz
txr-4b5e53a0451dc4198399312dcf5ccf097ea53e83.tar.bz2
txr-4b5e53a0451dc4198399312dcf5ccf097ea53e83.zip
txr: bind -D-valueless variables to empty string.
* txr.c (txr_main): Bind variables specified with -D but without values to the empty string, as documented in the manual.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.c b/txr.c
index f8e47b04..0a9451eb 100644
--- a/txr.c
+++ b/txr.c
@@ -668,7 +668,7 @@ int txr_main(int argc, char **argv)
else if (deflist)
bindings = cons(cons(sym, car(deflist)), bindings);
else
- bindings = cons(cons(sym, t), bindings);
+ bindings = cons(cons(sym, string(L"")), bindings);
match_reg_var(sym);