From 0ffb10398ba6fd80ab1f3431aff13556ced8ea50 Mon Sep 17 00:00:00 2001 From: pablozg Date: Wed, 5 Dec 2018 16:28:12 +0100 Subject: [PATCH] Fix compilation error: 'saveptr' may be used uninitialized in this function [-Werror=maybe-uninitialized] --- src/epggrab/module/xmltv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c index d63ee994e..4fbdfb55f 100644 --- a/src/epggrab/module/xmltv.c +++ b/src/epggrab/module/xmltv.c @@ -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) { -- 2.47.2