libs/libc/stdio/lib_setvbuf.c: Fix warning: 'newbuf may be used uninitialized'

This commit is contained in:
Xiang Xiao 2018-08-29 06:07:05 -06:00 committed by Gregory Nutt
parent 11bccf42ea
commit 6129136329

View File

@ -92,7 +92,7 @@
int setvbuf(FAR FILE *stream, FAR char *buffer, int mode, size_t size)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
FAR unsigned char *newbuf;
FAR unsigned char *newbuf = NULL;
uint8_t flags;
int errcode;