Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-07-22 22:22:55 +0400
committerRussell Belfer <rb@github.com>2013-07-22 22:22:55 +0400
commit989710d9828ef0f90b494903bd1e1bd8b20a8914 (patch)
tree16ce496c08609039e51920969dd9487fffe2c4a1 /src/fileops.c
parentc77342ef1c956f99f84f217359c73e8de65cdd1c (diff)
Fix warning message about mismatched types
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fileops.c b/src/fileops.c
index db53d4fce..c01ff64db 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -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;
}