Commit 14f739a5 authored by Ian Chamberlain's avatar Ian Chamberlain Committed by Jean-Baptiste Kempf

Fixed warning for uninitialized variable

This was an uninitialized variable, as far as I could tell there was no reason not to initialize it to NULL in these two cases.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b2d01eea
......@@ -536,8 +536,10 @@ char *str_format_meta(input_thread_t *input, const char *s)
FILE *stream = open_memstream(&str, &len);
#elif defined( _WIN32 )
FILE *stream = vlc_win32_tmpfile();
str = NULL;
#else
FILE *stream = tmpfile();
str = NULL;
#endif
if (stream == NULL)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment