diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index da2d48bb4031..4aeddb92e2c6 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -112,10 +112,8 @@ main(argc, argv) default: usage(); } - argv += optind; - argc -= optind; - if (argc > 1) + if (argc > optind) usage(); m = (void *)malloc(size = 1025);