]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove useless null-check on an array
authorFlole998 <Flole998@users.noreply.github.com>
Fri, 8 Apr 2022 04:18:55 +0000 (06:18 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Apr 2022 04:18:55 +0000 (06:18 +0200)
src/epg.c

index 3ce4e1e3b0e762e80b2ead6d029f811253d842d9..ade8d6856152f9db26441fccf8d04efe956bbc93 100644 (file)
--- a/src/epg.c
+++ b/src/epg.c
@@ -1107,7 +1107,7 @@ static int _epg_broadcast_set_set
   if (*set == NULL) {
     if (uri == NULL || uri[0] == '\0')
       return 0;
-  } else if (strcmp((*set)->uri ?: "", uri ?: "")) {
+  } else if (strcmp((*set)->uri, uri ?: "")) {
     epg_set_broadcast_remove(tree, *set, ebc);
   } else {
     return 0;