]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
channel icons: fix the compilation issue
authorJaroslav Kysela <perex@perex.cz>
Sun, 3 Dec 2017 09:07:37 +0000 (10:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 3 Dec 2017 09:07:43 +0000 (10:07 +0100)
src/channels.c

index b9d8b08da36a6acb1bf2199a39a695d073e8cd67..41115ee6c1f0fed8b17d8441254f2809b240f1ab 100644 (file)
@@ -964,8 +964,7 @@ channel_get_icon ( channel_t *ch )
           }
         }
       } else if ((send = strstr(chi, "%U"))) {
-        if (sname == NULL)
-          sname = strdup(chname);
+        sname = strdup(chname);
 
         if (config.chicon_scheme == CHICON_LOWERCASE) {
           utf8_lowercase_inplace((char *)sname);