summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-01-27 18:57:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-01-27 18:57:15 -0800
commit293eeef3fca41458568340d20fdbdf4262036332 (patch)
tree1ebc783864ceb7a6a4337393e8f9a351ae544b6d /lib.c
parente9b78ff2c7a7765b842588c9a93f84956de9834d (diff)
downloadtxr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 7c857423..e971ef1f 100644
--- a/lib.c
+++ b/lib.c
@@ -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)))