]> git.sesse.net Git - vlc/commitdiff
Fixed warning for uninitialized variable
authorIan Chamberlain <ian.h.chamberlain@gmail.com>
Sun, 1 Mar 2015 07:02:22 +0000 (07:02 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Mar 2015 22:53:32 +0000 (23:53 +0100)
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: Jean-Baptiste Kempf <jb@videolan.org>
src/text/strings.c

index 9cc150aee4a62a05253fb2977ea631cabfecd21f..04005bc124857e3ecdf7fddb741111a04967cd9f 100644 (file)
@@ -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;