libc/stdio: Don't fetch width/prec modifier in parser phase

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-08 17:47:22 +08:00 committed by Alan Carvalho de Assis
parent 428ce93ee5
commit a2e9e83956

View File

@ -363,6 +363,10 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
flags |= FL_ASTERISK;
continue;
}
else if (stream == NULL)
{
continue; /* We do only parsing */
}
#endif
if ((flags & FL_PREC) != 0)