Fix warning: 'argnumber' may be used uninitialized in this function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-18 15:54:58 +08:00 committed by Petro Karashchenko
parent c1bde1a4d2
commit 8f4421a79e

View File

@ -203,7 +203,7 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
int total_len = 0;
#ifdef CONFIG_LIBC_NUMBERED_ARGS
int argnumber;
int argnumber = 0;
#endif
for (; ; )