vlc | branch: master | Ian Chamberlain <[email protected]> | Sun Mar 1 07:02:22 2015 +0000| [14f739a56a0515da2905eb7f591fe9ad55f4a040] | committer: 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: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14f739a56a0515da2905eb7f591fe9ad55f4a040 --- src/text/strings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/text/strings.c b/src/text/strings.c index 9cc150a..04005bc 100644 --- a/src/text/strings.c +++ b/src/text/strings.c @@ -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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
