Merge pull request #7190 from libgit2/ethomson/config

config: Fix potential null value passed to %s
This commit is contained in:
Edward Thomson
2026-01-11 22:52:34 +00:00
committed by GitHub

View File

@@ -1447,7 +1447,7 @@ int git_config_parse_bool(int *out, const char *value)
return 0;
}
git_error_set(GIT_ERROR_CONFIG, "failed to parse '%s' as a boolean value", value);
git_error_set(GIT_ERROR_CONFIG, "failed to parse '%s' as a boolean", value ? value : "(null)");
return -1;
}