From: RĂ©mi Denis-Courmont Date: Thu, 16 Apr 2009 14:44:53 +0000 (+0300) Subject: Allow empty module name in chain X-Git-Tag: 1.0.0-pre2~20 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=35d69f689351709222a019b0b0cf59eba87d26a8;p=vlc Allow empty module name in chain --- diff --git a/src/config/chain.c b/src/config/chain.c index 3356ba8793..3122c48702 100644 --- a/src/config/chain.c +++ b/src/config/chain.c @@ -189,10 +189,6 @@ char *config_ChainCreate( char **ppsz_name, config_chain_t **pp_cfg, /* Look for parameter (a {...} or :...) or end of name (space or nul) */ len = strcspn( psz_chain, "{: \t" ); - if( len == 0 ) - return NULL; - - /* Extract the name */ *ppsz_name = strndup( psz_chain, len ); psz_chain += len;