Commit 77cfb89f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

modules/services_discovery/podcast.c: Fix initial number of url.

parent b86c36e6
...@@ -148,7 +148,7 @@ static void Run( services_discovery_t *p_sd ) ...@@ -148,7 +148,7 @@ static void Run( services_discovery_t *p_sd )
char *psz_tmp = psz_buf = var_CreateGetString( p_sd, "podcast-urls" ); char *psz_tmp = psz_buf = var_CreateGetString( p_sd, "podcast-urls" );
i = 0; i = 0;
p_sys->i_urls = 1; p_sys->i_urls = psz_buf[0] ? 1 : 0;
while( psz_buf[i] != 0 ) while( psz_buf[i] != 0 )
if( psz_buf[i++] == '|' ) if( psz_buf[i++] == '|' )
p_sys->i_urls++; p_sys->i_urls++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment