From: Steve Bennett Date: Wed, 24 Jul 2013 06:13:50 +0000 (+1000) Subject: Fix a bogus compiler warning X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fd43665fc8b76e31ec4de5fc129d4b668e037d3f;p=linenoise.git Fix a bogus compiler warning Signed-off-by: Steve Bennett --- diff --git a/linenoise.c b/linenoise.c index 7254928..5108d9e 100644 --- a/linenoise.c +++ b/linenoise.c @@ -395,7 +395,7 @@ static int countColorControlChars(const char* prompt, int plen) expect_inner, expect_trail } state = search_esc; - int len, found = 0; + int len = 0, found = 0; char ch; /* XXX: Strictly we should be checking utf8 chars rather than