[vlc-devel] commit: Allow empty module name in chain ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Apr 16 16:45:39 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 16 17:44:53 2009 +0300| [35d69f689351709222a019b0b0cf59eba87d26a8] | committer: Rémi Denis-Courmont
Allow empty module name in chain
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35d69f689351709222a019b0b0cf59eba87d26a8
---
src/config/chain.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/config/chain.c b/src/config/chain.c
index 3356ba8..3122c48 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;
More information about the vlc-devel
mailing list