Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb_frontend: fix possible string NULL dereference - coverity
  • Loading branch information
perexg committed May 23, 2016
1 parent da01d22 commit ce8d357
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_frontend.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit ce8d357

Please sign in to comment.