]> git.sesse.net Git - vlc/commitdiff
Allow empty module name in chain
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 16 Apr 2009 14:44:53 +0000 (17:44 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 16 Apr 2009 14:44:53 +0000 (17:44 +0300)
src/config/chain.c

index 3356ba87932f70f814cc4f16c21e2e97409ba65b..3122c48702cae487a6f4ce2fd66aebf5f8d47453 100644 (file)
@@ -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;