Commit 35d69f68 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Allow empty module name in chain

parent bc685cdc
......@@ -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;
......
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