Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
idnode: better check for p argument in idnode_get_display() - coverity
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 12be763 commit a1e10f7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/idnode.c
Expand Up @@ -338,12 +338,14 @@ static char *
idnode_get_display
( idnode_t *self, const property_t *p )
{
if (p->rend)
return p->rend(self);
if (p->islist) {
htsmsg_t *l = (htsmsg_t*)p->get(self);
if (l)
return htsmsg_list_2_csv(l);
if (p) {
if (p->rend)
return p->rend(self);
if (p->islist) {
htsmsg_t *l = (htsmsg_t*)p->get(self);
if (l)
return htsmsg_list_2_csv(l);
}
}
return NULL;
}
Expand Down

0 comments on commit a1e10f7

Please sign in to comment.