]> git.lizzy.rs Git - linenoise.git/blobdiff - linenoise.c
Fix a bogus compiler warning
[linenoise.git] / linenoise.c
index 7254928a9c0f44475a04707549dd6c947cba949f..5108d9e00ff6833bc2a93a412b18ef83fe781544 100644 (file)
@@ -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