Commit 8e3df82b authored by Antoine Cellerier's avatar Antoine Cellerier

C has a function named strchr().

parent 27d81721
...@@ -437,16 +437,13 @@ module_t * __module_need( vlc_object_t *p_this, const char *psz_capability, ...@@ -437,16 +437,13 @@ module_t * __module_need( vlc_object_t *p_this, const char *psz_capability,
} }
i_shortcuts++; i_shortcuts++;
psz_shortcuts = psz_last_shortcut = strdup( psz_name ); psz_parser = psz_shortcuts = psz_last_shortcut = strdup( psz_name );
for( psz_parser = psz_shortcuts; *psz_parser; psz_parser++ ) while( ( psz_parser = strchr( psz_parser, ',' ) ) )
{ {
if( *psz_parser == ',' ) *psz_parser = '\0';
{ i_shortcuts++;
*psz_parser = '\0'; psz_last_shortcut = ++psz_parser;
i_shortcuts++;
psz_last_shortcut = psz_parser + 1;
}
} }
/* Check if the user wants to override the "strict" mode */ /* Check if the user wants to override the "strict" mode */
......
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