argv was set but unused
[openssl.git] / apps / pkey.c
index 6f5ecf0ce658cd5842788deb5d0be5451b64614c..122ced706cdfde5b0e2bf4db62b985ab882891e9 100644 (file)
@@ -159,7 +159,9 @@ int pkey_main(int argc, char **argv)
         }
     }
     argc = opt_num_rest();
         }
     }
     argc = opt_num_rest();
-    argv = opt_rest();
+    if (argc != 0)
+        goto opthelp;
+
     private = !noout && !pubout ? 1 : 0;
     if (text && !pubtext)
         private = 1;
     private = !noout && !pubout ? 1 : 0;
     if (text && !pubtext)
         private = 1;