Skip to content
Snippets Groups Projects
Commit 2e584225 authored by Herbert Xu's avatar Herbert Xu
Browse files

builtin: Reset t_wp_op in testcmd


The global variable t_wp_op needs to be reset every time testcmd
is called or it may cause incorrect parsing of the arguments.

Reported-by: default avatarMartijn Dekker <martijn@inlv.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d7582e69
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -193,6 +193,8 @@ testcmd(int argc, char **argv)
argv[argc] = NULL;
}
 
t_wp_op = NULL;
recheck:
argv++;
argc--;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment