argv was set but unused
[openssl.git] / apps / rsa.c
index 23383d93de3a32b9d8d9c875587ba08167698b66..5320f38455fcc90e086a601402f89a7f4c76c90f 100644 (file)
@@ -252,7 +252,9 @@ int rsa_main(int argc, char **argv)
         }
     }
     argc = opt_num_rest();
-    argv = opt_rest();
+    if (argc != 0)
+        goto opthelp;
+
     private = (text && !pubin) || (!pubout && !noout) ? 1 : 0;
 
     if (!app_passwd(passinarg, passoutarg, &passin, &passout)) {