From 6129136329d2d41271ee66e28a205d196901b4ab Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 29 Aug 2018 06:07:05 -0600 Subject: [PATCH] libs/libc/stdio/lib_setvbuf.c: Fix warning: 'newbuf may be used uninitialized' --- libs/libc/stdio/lib_setvbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/stdio/lib_setvbuf.c b/libs/libc/stdio/lib_setvbuf.c index f5d33d0e73..90481520bf 100644 --- a/libs/libc/stdio/lib_setvbuf.c +++ b/libs/libc/stdio/lib_setvbuf.c @@ -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;