From 14d030093e599b342acf0e0450bf29c6268d21d7 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 9 Oct 2018 21:08:30 +0300 Subject: Fix bug with parser --- src/ck.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ck.c') diff --git a/src/ck.c b/src/ck.c index f9a2ad1..a350a5f 100644 --- a/src/ck.c +++ b/src/ck.c @@ -39,14 +39,9 @@ int main(int argc, char *argv[]) { UserOpt opt; Conf conf = {.vc_dir = NULL, .scrt_dir = NULL}; /* get user opt */ - int rc = parse_action(argc, argv, &opt); - if (rc < 0) { + if (parse_action(argc, argv, &opt)) { goto error; } - else if (rc == 1) { - goto close; - } - /* If the action is init don't load the config, skip to running init*/ if (opt.action != CKA_INIT) { /* If the db doesn't exist ck is not initialized in the config -- cgit v1.2.3