diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-27 08:54:09 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-27 08:54:09 -0500 |
commit | e32db9f2b85685801fb249e35bf62a32ef09dc98 (patch) | |
tree | afb23978d6747f78c8b7c43fb2f4b6958c2aa94c | |
parent | 1327dbcf2a4273a8ba6fd978db5f0882530af94d (diff) | |
download | libgit2-e32db9f2b85685801fb249e35bf62a32ef09dc98.tar.gz |
cli: always give a value to `error`
-rw-r--r-- | src/cli/opt_usage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/opt_usage.c b/src/cli/opt_usage.c index 6e5d6006e..478b41631 100644 --- a/src/cli/opt_usage.c +++ b/src/cli/opt_usage.c @@ -150,7 +150,7 @@ int cli_opt_help_fprint( { git_str help = GIT_BUF_INIT; const cli_opt_spec *spec; - int error; + int error = 0; /* Display required arguments first */ for (spec = specs; spec->type; ++spec) { |