summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-07 20:15:40 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-07 20:15:40 -0700
commit46b7f60f9fa32fd2a8c2162cf108dc89d3d95196 (patch)
tree21cb7f25225d158a6439fae595232cd655c22844 /lib.c
parent5dc47f6ac0acf28b44cf52258a0037b4da9ae6ce (diff)
downloadtxr-46b7f60f9fa32fd2a8c2162cf108dc89d3d95196.tar.gz
txr-46b7f60f9fa32fd2a8c2162cf108dc89d3d95196.tar.bz2
txr-46b7f60f9fa32fd2a8c2162cf108dc89d3d95196.zip
* lib.c (replace_list, sel): fix use of unused variable.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index d8ac95e3..d6f4f080 100644
--- a/lib.c
+++ b/lib.c
@@ -777,7 +777,7 @@ val replace_list(val list, val items, val from, val to)
nao);
for (; seq && where && items; seq = cdr(seq), idx = plus(idx, one)) {
- val wh;
+ val wh = nil;
for (; where && lt(wh = car(where), idx); where = cdr(where))
; /* empty */
@@ -5629,7 +5629,7 @@ val sel(val seq_in, val where_in)
val idx = zero;
for (; seq && where; seq = cdr(seq), idx = plus(idx, one)) {
- val wh;
+ val wh = nil;
for (; where && lt(wh = car(where), idx); where = cdr(where))
; /* empty */