libc/stdio: Remove unneeded initialization - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b96ef460770e7d0bf335cbadbed7efd2db08199e
 (DIR) parent f507bae3a0e45b6f9eeadecb3065afaea1a6d6bc
 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Tue, 25 Mar 2025 10:50:48 +0100
       
       libc/stdio: Remove unneeded initialization
       
       The cnt variable is later initialized in the for loop.
       
       Diffstat:
         M src/libc/stdio/vfprintf.c           |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/libc/stdio/vfprintf.c b/src/libc/stdio/vfprintf.c
       @@ -204,7 +204,7 @@ int
        vfprintf(FILE *restrict fp, const char *restrict fmt, va_list va)
        {
                int ch, n, flags, width, left, fill, prec;
       -        size_t inc, len, cnt = 0;
       +        size_t inc, len, cnt;
                char *s;
                wchar_t *ws;
                struct conv conv;