From e4ab13f855edb0a23deca48e11069668c5b6ae51 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 28 Jan 2014 23:36:00 +0100 Subject: [PATCH] Fix clang scan-build warning. --- jsproperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsproperty.c b/jsproperty.c index 5359866..bfad8f3 100644 --- a/jsproperty.c +++ b/jsproperty.c @@ -218,7 +218,7 @@ static void itwalk(js_State *J, js_Object *io, js_Object *top, int own) js_Iterator *node = malloc(sizeof *node); node->name = prop->name; node->next = NULL; - if (!io->u.iter.head) { + if (!tail) { io->u.iter.head = tail = node; } else { tail->next = node;