cli: always give a value to `error`
diff --git a/src/cli/opt_usage.c b/src/cli/opt_usage.c
index 6e5d600..478b416 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) {