openpgp-tool: Return EXIT_SUCCESS if no error occurs

exit_status is either set directly or a function return is ORed with it,
in which case EXIT_SUCCESS can never be returned if the initial value is !=
0;
This commit is contained in:
Sumedha Widyadharma 2014-08-20 21:45:42 +02:00
parent 5279bfa2d1
commit d13549600d
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ int main(int argc, char **argv)
sc_card_t *card = NULL;
int r;
int argind = 0;
int exit_status = EXIT_FAILURE;
int exit_status = EXIT_SUCCESS;
/* decode options */
argind = decode_options(argc, argv);