cli: avoid uninitialized variable warnings

This commit is contained in:
Edward Thomson
2026-05-11 20:06:40 +01:00
parent 7523c4d7c8
commit f342d50b24

View File

@@ -359,7 +359,7 @@ GIT_INLINE(const cli_opt_spec *) spec_for_sort(
const char *arg)
{
int is_negated, has_value = 0;
const char *value;
const char *value = NULL;
const cli_opt_spec *spec = NULL;
size_t idx = 0;