argv was set but unused
[openssl.git] / apps / pkcs7.c
index 1ed0b013395b95f33c8ca0ba150cee6057177f65..ad8330d42ff76e0864be2ed01b3cf60b19517da8 100644 (file)
@@ -191,7 +191,8 @@ int pkcs7_main(int argc, char **argv)
         }
     }
     argc = opt_num_rest();
-    argv = opt_rest();
+    if (argc != 0)
+        goto opthelp;
 
     in = bio_open_default(infile, 'r', informat);
     if (in == NULL)