diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-09 21:08:30 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-09 21:08:30 +0300 |
commit | 14d030093e599b342acf0e0450bf29c6268d21d7 (patch) | |
tree | 0585c98190ca7ae8b096d7095716585c5e16623a /src/ck.c | |
parent | 855c582f5eecaab2cb5637a5157658f7cb71cc1d (diff) | |
download | ck-14d030093e599b342acf0e0450bf29c6268d21d7.tar.gz ck-14d030093e599b342acf0e0450bf29c6268d21d7.tar.bz2 ck-14d030093e599b342acf0e0450bf29c6268d21d7.zip |
Fix bug with parser
Diffstat (limited to 'src/ck.c')
-rw-r--r-- | src/ck.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |