diff options
author | Paul A. Patience <paul@apatience.com> | 2022-02-04 21:51:36 -0500 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-02-05 11:29:09 -0800 |
commit | 4b5e53a0451dc4198399312dcf5ccf097ea53e83 (patch) | |
tree | f6e0d72bddc154a2bb6ee7784cc31cbd36736865 | |
parent | f625db09173f6a0e26bd4c293273899892f3d405 (diff) | |
download | txr-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.
-rw-r--r-- | txr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |