summaryrefslogtreecommitdiff
path: root/p11-kit/lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/lists.c')
-rw-r--r--p11-kit/lists.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/p11-kit/lists.c b/p11-kit/lists.c
index c6f33da..5804be2 100644
--- a/p11-kit/lists.c
+++ b/p11-kit/lists.c
@@ -281,10 +281,7 @@ p11_kit_list_modules (int argc,
}
}
- argc -= optind;
- argv += optind;
-
- if (argc != 0) {
+ if (argc - optind != 0) {
p11_message ("extra arguments specified");
return 2;
}