summaryrefslogtreecommitdiffstats
path: root/apps/cmp.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-04-03 14:05:09 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-04-14 16:51:11 +0200
commitf56c9c7c942cd82595bb47808c732048141dc72d (patch)
treeb35fb61f2d0ce7af0482b9baf6632e91877f0cf9 /apps/cmp.c
parent3ad6030948ac999de165f6185116459d74644e8d (diff)
APPS and TEST: Make sure prog name is set for usage output
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14841)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r--apps/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index 135c509831..53996a7cc8 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2536,8 +2536,8 @@ int cmp_main(int argc, char **argv)
char mock_server[] = "mock server:1";
int ret = 0; /* default: failure */
+ prog = opt_appname(argv[0]);
if (argc <= 1) {
- prog = opt_appname(argv[0]);
opt_help(cmp_options);
goto err;
}