Skip to content

Commit e32db9f

Browse files
committed
cli: always give a value to error
1 parent 1327dbc commit e32db9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/opt_usage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int cli_opt_help_fprint(
150150
{
151151
git_str help = GIT_BUF_INIT;
152152
const cli_opt_spec *spec;
153-
int error;
153+
int error = 0;
154154

155155
/* Display required arguments first */
156156
for (spec = specs; spec->type; ++spec) {

0 commit comments

Comments
 (0)