diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-01-27 18:57:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-01-27 18:57:15 -0800 |
commit | 293eeef3fca41458568340d20fdbdf4262036332 (patch) | |
tree | 1ebc783864ceb7a6a4337393e8f9a351ae544b6d /lib.c | |
parent | e9b78ff2c7a7765b842588c9a93f84956de9834d (diff) | |
download | txr-293eeef3fca41458568340d20fdbdf4262036332.tar.gz txr-293eeef3fca41458568340d20fdbdf4262036332.tar.bz2 txr-293eeef3fca41458568340d20fdbdf4262036332.zip |
* lib.c (make_like): Fix regression introduced in 102.
A one element list being converted to a string
treated as an empty list, leading to empty string.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -505,7 +505,7 @@ val make_like(val list, val thatobj) case LIT: case LSTR: if (!opt_compat || opt_compat > 101) { - if (!cdr(list)) + if (!list) return null_string; } if (is_chr(car(list))) |