]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix compilation error: 'saveptr' may be used uninitialized in this function [-Werror...
authorpablozg <pablozg@gmail.com>
Wed, 5 Dec 2018 15:28:12 +0000 (16:28 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 5 Dec 2018 16:46:22 +0000 (17:46 +0100)
src/epggrab/module/xmltv.c

index d63ee994ed3709213fcbe87347a7c4850797b7a5..4fbdfb55fd4173dc618b5a3dc025edb6d2e637df 100644 (file)
@@ -582,7 +582,7 @@ _xmltv_parse_credits(htsmsg_t **out_credits, htsmsg_t *tags)
          ) &&
         (e = htsmsg_get_map_by_field(f)))  {
       const char* str = htsmsg_get_str(e, "cdata");
-      char *s, *str2 = NULL, *saveptr;
+      char *s, *str2 = NULL, *saveptr = NULL;
       if (str == NULL) continue;
       if (strstr(str, "|") == 0) {