Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epg: epg_episode_number_format - ensure to return null string, fixes …
…#2907
  • Loading branch information
perexg committed May 31, 2015
1 parent e079c44 commit 39039f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/epg.c
Expand Up @@ -1103,6 +1103,7 @@ size_t epg_episode_number_format
if (!episode || !buf || !len) return 0;
epg_episode_num_t num;
epg_episode_get_epnum(episode, &num);
buf[0] = '\0';
if ( num.e_num ) {
if (pre) tvh_strlcatf(buf, len, i, "%s", pre);
if ( sfmt && num.s_num ) {
Expand Down

0 comments on commit 39039f2

Please sign in to comment.