From bf8f5100eaf348023cfa04f540bba2fa3cf738a4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 10 Jan 2016 12:33:39 -0800 Subject: Reduce scope of variable in cat_str. * lib.c (cat_str): Unnecessarily scoped len variable moves to inner scope. --- lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.c b/lib.c index aac7d146..79991ae2 100644 --- a/lib.c +++ b/lib.c @@ -3395,11 +3395,11 @@ val cat_str(val list, val sep) for (ptr = str, iter = list; iter != nil; iter = cdr(iter)) { val item = car(iter); - cnum len; + if (!item) continue; if (stringp(item)) { - len = c_num(length_str(item)); + cnum len = c_num(length_str(item)); wmemcpy(ptr, c_str(item), len); ptr += len; } else { -- cgit v1.2.3