]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb_frontend: fix possible string NULL dereference - coverity
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:34:02 +0000 (21:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:34:02 +0000 (21:34 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index f97dbcf9f8ec20929e510ac5b42ce7981200d6d5..ec5e8b18ef4f727727dd128a3075d822b702c539 100644 (file)
@@ -209,8 +209,9 @@ linuxdvb_frontend_dvbs_class_satconf_set ( void *self, const void *str )
 {
   linuxdvb_frontend_t *lfe = self;
   htsmsg_t *conf;
+  str = str ?: "";
   if (lfe->lfe_satconf) {
-    if (!strcmp(str ?: "", lfe->lfe_satconf->ls_type))
+    if (!strcmp(str, lfe->lfe_satconf->ls_type))
       return 0;
     linuxdvb_satconf_delete(lfe->lfe_satconf, 1);
   }