diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 37fa85ba27ed..00ecadf11090 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -78,7 +78,7 @@ main(argc, argv) autologin = 1; while ((ch = getopt(argc, argv, "dgintv")) != EOF) { - switch (*cp) { + switch (ch) { case 'd': options |= SO_DEBUG; debug++;