[vlc-commits] str_format_meta: add assertion

Rémi Denis-Courmont git at videolan.org
Wed May 6 22:58:33 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May  6 23:50:53 2015 +0300| [9f09d628b136c2fe48679b320518c37f3cbc7edc] | committer: Rémi Denis-Courmont

str_format_meta: add assertion

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

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

diff --git a/src/text/strings.c b/src/text/strings.c
index 3d236b5..4fce097 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