[vlc-commits] str_format_meta: missing initializer on error path
Rémi Denis-Courmont
git at videolan.org
Tue Mar 3 21:35:55 CET 2015
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 1 10:08:30 2015 +0200| [fae03b9715887b97fe69966bd32ff51a720e9ea9] | committer: Jean-Baptiste Kempf
str_format_meta: missing initializer on error path
(cherry picked from commit b592e72f5c2a7f7798ca91b3ce46e19257bd9a36)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=fae03b9715887b97fe69966bd32ff51a720e9ea9
---
src/text/strings.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/text/strings.c b/src/text/strings.c
index a9464f8..d864211 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