From: Junio C Hamano Date: Mon, 27 Apr 2026 12:21:45 +0000 (+0900) Subject: SQUASH??? X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=438afb06644ae75037eb76ec8296de007e6844be;p=thirdparty%2Fgit.git SQUASH??? --- diff --git a/parse-options.c b/parse-options.c index a1258134df..1a5feab5dd 100644 --- a/parse-options.c +++ b/parse-options.c @@ -647,7 +647,8 @@ static const char *autocorrect_subcommand(const char *cmd, struct string_list *cmds) { struct autocorrect autocorrect = { 0 }; - unsigned int n = 0, best = 0; + unsigned int n = 0; + int best = 0; struct string_list_item *cand; autocorrect_resolve(&autocorrect); @@ -657,7 +658,7 @@ static const char *autocorrect_subcommand(const char *cmd, for_each_string_list_item(cand, cmds) { if (starts_with(cand->string, cmd)) { - cand->util = 0; + cand->util = NULL; } else { int edit = levenshtein(cmd, cand->string, 0, 2, 1, 3) + 1;