summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-02-27 08:54:09 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-02-27 08:54:09 -0500
commite32db9f2b85685801fb249e35bf62a32ef09dc98 (patch)
treeafb23978d6747f78c8b7c43fb2f4b6958c2aa94c
parent1327dbcf2a4273a8ba6fd978db5f0882530af94d (diff)
downloadlibgit2-e32db9f2b85685801fb249e35bf62a32ef09dc98.tar.gz
cli: always give a value to `error`
-rw-r--r--src/cli/opt_usage.c2
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) {