mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
libs/libc/stdio/lib_setvbuf.c: Fix warning: 'newbuf may be used uninitialized'
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user