From ca082f686fd2dc7ee6f0284421f6212d6d4acee8 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 11 Apr 2024 17:22:00 +0200 Subject: bug fixes --- userland/libc/stdio/vfprintf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'userland/libc/stdio') diff --git a/userland/libc/stdio/vfprintf.c b/userland/libc/stdio/vfprintf.c index c3a8de7..65a2c27 100644 --- a/userland/libc/stdio/vfprintf.c +++ b/userland/libc/stdio/vfprintf.c @@ -93,9 +93,8 @@ int print_string(FILE *f, const char *s, int *rc, int prefix, int right_padding, break; bl--; } - int r; + int r = 0; FILE_WRITE(f, (const unsigned char *)s, 1, &r); - assert(r != 0); } if (right_padding) { assert(-1 == precision); // FIXME: Is this correct? -- cgit v1.2.3