]> 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:37 +0000 (10:07 +0100)
src/channels.c

index 17a89ce31d82a8ebbb1fe1cab6f05d12c3fbb767..d16898b8c1ff93fb1bf7d49851648cb746eecaac 100644 (file)
@@ -855,8 +855,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);