From 77cfb89fd2bbd5001755f5fcd1c0f01bbea01b17 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 18 Aug 2007 03:52:09 +0000 Subject: [PATCH] modules/services_discovery/podcast.c: Fix initial number of url. --- modules/services_discovery/podcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c index 7098e419ba..3192a69c33 100644 --- a/modules/services_discovery/podcast.c +++ b/modules/services_discovery/podcast.c @@ -148,7 +148,7 @@ static void Run( services_discovery_t *p_sd ) char *psz_tmp = psz_buf = var_CreateGetString( p_sd, "podcast-urls" ); i = 0; - p_sys->i_urls = 1; + p_sys->i_urls = psz_buf[0] ? 1 : 0; while( psz_buf[i] != 0 ) if( psz_buf[i++] == '|' ) p_sys->i_urls++; -- 2.39.2