mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
index: initialize best_len unnecessarily
gcc thinks this could be used uninitialized; cope with this.
This commit is contained in:
@@ -1225,7 +1225,7 @@ static int canonicalize_directory_path(
|
||||
{
|
||||
const git_index_entry *match, *best = NULL;
|
||||
char *search, *sep;
|
||||
size_t pos, search_len, best_len;
|
||||
size_t pos, search_len, best_len = 0;
|
||||
|
||||
if (!index->ignore_case)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user