mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 19:23:05 +00:00
Fix warning message about mismatched types
This commit is contained in:
parent
c77342ef1c
commit
989710d982
@ -630,13 +630,11 @@ static git_futils_dirs_guess_cb git_futils__dir_guess[GIT_FUTILS_DIR__MAX] = {
|
||||
int git_futils_dirs_global_init(void)
|
||||
{
|
||||
git_futils_dir_t i;
|
||||
git_buf *path;
|
||||
const git_buf *path;
|
||||
int error = 0;
|
||||
|
||||
for (i = 0; i < GIT_FUTILS_DIR__MAX; i++) {
|
||||
if ((error = git_futils_dirs_get(&path, i)) < 0)
|
||||
break;
|
||||
}
|
||||
for (i = 0; !error && i < GIT_FUTILS_DIR__MAX; i++)
|
||||
error = git_futils_dirs_get(&path, i);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user