]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-crypto/main.c
examples: fix optind reset
[dpdk.git] / examples / l2fwd-crypto / main.c
index 62ee9339f48902c2f80c758e21f1c18c38eeda89..bd21dba7edbe69104cc1e7981a9337db3122332d 100644 (file)
@@ -1450,7 +1450,7 @@ l2fwd_crypto_parse_args(struct l2fwd_crypto_options *options,
                argv[optind-1] = prgname;
 
        retval = optind-1;
-       optind = 0; /* reset getopt lib */
+       optind = 1; /* reset getopt lib */
 
        return retval;
 }