diff options
| author | Anton Kling <anton@kling.gg> | 2024-04-11 17:22:00 +0200 |
|---|---|---|
| committer | Anton Kling <anton@kling.gg> | 2024-04-11 17:23:39 +0200 |
| commit | ca082f686fd2dc7ee6f0284421f6212d6d4acee8 (patch) | |
| tree | 493b1047661174816f0d1d300952e40e2846b24b /userland/libc/stdio | |
| parent | e25a47fcc4db09ab9b845a691297da67243e6049 (diff) | |
bug fixes
Diffstat (limited to 'userland/libc/stdio')
| -rw-r--r-- | userland/libc/stdio/vfprintf.c | 3 |
1 files changed, 1 insertions, 2 deletions
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? |