[vlc-commits] str_format_meta: add assertion
Rémi Denis-Courmont
git at videolan.org
Wed May 6 23:03:02 CEST 2015
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 6 23:50:53 2015 +0300| [cbe61dbccb0120920fd690e12cac14738290ee35] | committer: Rémi Denis-Courmont
str_format_meta: add assertion
(cherry picked from commit 9f09d628b136c2fe48679b320518c37f3cbc7edc)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=cbe61dbccb0120920fd690e12cac14738290ee35
---
src/text/strings.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/text/strings.c b/src/text/strings.c
index d864211..398c8bc 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -548,6 +548,8 @@ char *str_format_meta(input_thread_t *input, const char *s)
bool b_is_format = false;
bool b_empty_if_na = false;
+ assert(s != NULL);
+
while ((c = *s) != '\0')
{
s++;
More information about the vlc-commits
mailing list