Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epg: coverity - fix _epg_sort_title_ascending()
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 49c5896 commit 3d3d24a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/epg.c
Expand Up @@ -2366,6 +2366,7 @@ static int _epg_sort_title_ascending ( const void *a, const void *b, void *eq )
{
const char *s1 = epg_broadcast_get_title(*(epg_broadcast_t**)a, ((epg_query_t *)eq)->lang);
const char *s2 = epg_broadcast_get_title(*(epg_broadcast_t**)b, ((epg_query_t *)eq)->lang);
if (s1 == NULL && s2 == NULL) return 0;
if (s1 == NULL && s2) return 1;
if (s1 && s2 == NULL) return -1;
return strcmp(s1, s2);
Expand Down

0 comments on commit 3d3d24a

Please sign in to comment.