builtin: Reset t_wp_op in testcmd
commit2e5842258bd5b252ffdaa630db09c9a19a9717ca
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 13 Jul 2015 06:06:35 +0000 (13 14:06 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Aug 2015 12:53:43 +0000 (13 20:53 +0800)
tree7062c78c1b0187f9090994bdd5b9572c480fc2c8
parentd7582e69da222e48002ef79ec1d97d55fc469dd6
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: Martijn Dekker <martijn@inlv.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/bltin/test.c