[vlc-commits] str_format_meta: missing initializer on error path

Rémi Denis-Courmont git at videolan.org
Sun Mar 1 09:09:00 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  1 10:08:30 2015 +0200| [b592e72f5c2a7f7798ca91b3ce46e19257bd9a36] | committer: Rémi Denis-Courmont

str_format_meta: missing initializer on error path

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b592e72f5c2a7f7798ca91b3ce46e19257bd9a36
---

 src/text/strings.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/text/strings.c b/src/text/strings.c
index 33f30d4..9cc150a 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -818,6 +818,8 @@ char *str_format_meta(input_thread_t *input, const char *s)
         fread(str, len, 1, stream);
         str[len] = '\0';
     }
+    else
+        str = NULL;
     fclose(stream);
     return str;
 #endif



More information about the vlc-commits mailing list