Skip to content

Commit

Permalink
Remove useless NULL-check in ratinglabels.c
Browse files Browse the repository at this point in the history
Found by coverity
  • Loading branch information
Flole998 committed Jun 23, 2024
1 parent cd6bfbb commit c8435a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ratinglabels.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,8 @@ ratinglabel_create(const char *uuid, htsmsg_t *conf,
}

//Load the rating icon into the image cache if it is not already there.
if(rl){
if(rl->rl_icon){
(void)imagecache_get_id(rl->rl_icon);
}
if(rl->rl_icon){
(void)imagecache_get_id(rl->rl_icon);
}

rl->rl_saveflag = 1;
Expand Down

0 comments on commit c8435a0

Please sign in to comment.