summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/args/arg_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/args/arg_test.c b/test/args/arg_test.c
index b23e17610..c32b7b3b2 100644
--- a/test/args/arg_test.c
+++ b/test/args/arg_test.c
@@ -31,8 +31,8 @@ int main( int argc, char **argv)
fprintf(stderr, "argc=%d\n", argc);
- while(i<argc) {
- fprintf(stderr, "argv[%d]='%s'\n", i, argv[i++]);
+ for(i=0;i<argc;i++){
+ fprintf(stderr, "argv[%d]='%s'\n", i, argv[i]);
}
i=0;