diff --git a/printf.c b/printf.c index f6df54a..636e6ab 100644 --- a/printf.c +++ b/printf.c @@ -24,6 +24,8 @@ int _printf(const char *format, ...) if (!format) /* No string. No laundry */ return (0); + buff_idx = 0; + fmt_idx = 0; while (*(format + fmt_idx)) { if ((*(format + fmt_idx) == '%') && (*(format + fmt_idx + 1)))