From fd43665fc8b76e31ec4de5fc129d4b668e037d3f Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Wed, 24 Jul 2013 16:13:50 +1000 Subject: [PATCH] Fix a bogus compiler warning Signed-off-by: Steve Bennett --- linenoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0