diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 10:26:50 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 10:26:50 -0500 |
commit | a6c59096650be6653eb0b3590fb4ea3292337e6a (patch) | |
tree | 7e8d1d9ff89f50266c222e9fafd86d97a2542ce6 /src/cryptsetup/cryptsetup.c | |
parent | 785d345145bbd06c8f1c75c6a0b119c4e8f411db (diff) |
Revert "Trivial typo fixes and code refactorings (#5191)"
Let's do a merge to preserve all the commit messages.
This reverts commit 785d345145bbd06c8f1c75c6a0b119c4e8f411db.
Diffstat (limited to 'src/cryptsetup/cryptsetup.c')
-rw-r--r-- | src/cryptsetup/cryptsetup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 91c653312a..cefd1b85df 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -594,7 +594,7 @@ static int help(void) { int main(int argc, char *argv[]) { struct crypt_device *cd = NULL; - int r = -EINVAL; + int r; if (argc <= 1) { r = help(); @@ -603,6 +603,7 @@ int main(int argc, char *argv[]) { if (argc < 3) { log_error("This program requires at least two arguments."); + r = -EINVAL; goto finish; } @@ -749,6 +750,7 @@ int main(int argc, char *argv[]) { } else { log_error("Unknown verb %s.", argv[1]); + r = -EINVAL; goto finish; } |