epg: coverity - fix _epg_sort_title_ascending()
This commit is contained in:
parent
49c5896b4b
commit
3d3d24aa3e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue