From: pablozg Date: Wed, 5 Dec 2018 15:28:12 +0000 (+0100) Subject: Fix compilation error: 'saveptr' may be used uninitialized in this function [-Werror... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ffb10398ba6fd80ab1f3431aff13556ced8ea50;p=thirdparty%2Ftvheadend.git Fix compilation error: 'saveptr' may be used uninitialized in this function [-Werror=maybe-uninitialized] --- 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) {