diff --git a/libc/stdio/vcscanf.c b/libc/stdio/vcscanf.c index 982b67525..eff623019 100644 --- a/libc/stdio/vcscanf.c +++ b/libc/stdio/vcscanf.c @@ -540,6 +540,7 @@ int __vcscanf(int callback(void *), // if (ismalloc) { *va_arg(va, char **) = (void *) buf; } + buf = NULL; } else { do { if (isspace(c)) break;