From 138e95eec2483851a5b5ac2b2ceb0a813dbd49d8 Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 24 Jan 2019 23:44:58 +0200 Subject: Return 0 when printing version info --- src/clparser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/clparser.c') diff --git a/src/clparser.c b/src/clparser.c index 3a2a9a6..fbcd3ee 100644 --- a/src/clparser.c +++ b/src/clparser.c @@ -133,6 +133,7 @@ CkAction parser_get_action(const char *name, char *actionName) { static UserOpt make_empty_user_opt() { UserOpt opt; + opt.version = 0; opt.action = CK_WRONG_ACTION; opt.err = PERR_NOERR; opt.confDir = NULL; @@ -293,6 +294,7 @@ int parse_action(int argc, const char **argv, UserOpt *opt) { verbose(); /* handle version info */ if (version()) { + opt->version = 1; return -1; } /* figure what is the config file */ -- cgit v1.2.3