Commit 71f2600b authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Fixed cmdline parsing

parent f41cd3c7
......@@ -4490,7 +4490,7 @@ static void parse_cmdline(list_t *pml, char **params, int nparams, const char *v
char *key = NULL, *eqpos = NULL;
char **values = NULL;
int i = 1, j = 0;
while ( params[i] )
for ( i = 1; i < nparams; i++ )
{
if ( eqpos = strchr(params[i], '=') )
{
......@@ -4533,7 +4533,6 @@ static void parse_cmdline(list_t *pml, char **params, int nparams, const char *v
handleError(NULL, errh, NULL);
}
}
i++;
}
if ( key && values )
{
......
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