commit b96ef460770e7d0bf335cbadbed7efd2db08199e
parent f507bae3a0e45b6f9eeadecb3065afaea1a6d6bc
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:
1 file changed, 1 insertion(+), 1 deletion(-)
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;