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:
Diffstat (limited to 'src/attr_file.c')
-rw-r--r--src/attr_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/attr_file.c b/src/attr_file.c
index 3783b5ef3..48424123a 100644
--- a/src/attr_file.c
+++ b/src/attr_file.c
@@ -250,11 +250,12 @@ int git_attr_path__init(
git_buf full_path = GIT_BUF_INIT;
int error = git_buf_joinpath(&full_path, base, path);
if (error == GIT_SUCCESS)
- info->is_dir = (git_path_isdir(full_path.ptr) == GIT_SUCCESS);
+ info->is_dir = (int)git_path_isdir(full_path.ptr);
+
git_buf_free(&full_path);
return error;
}
- info->is_dir = (git_path_isdir(path) == GIT_SUCCESS);
+ info->is_dir = (int)git_path_isdir(path);
return GIT_SUCCESS;
}