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:
authorVicent Martí <tanoku@gmail.com>2012-02-17 03:13:34 +0400
committerVicent Martí <tanoku@gmail.com>2012-03-06 03:43:10 +0400
commit1a48112342932e9fcd45a1ff5935f1c9c53b83d1 (patch)
treefbb18cfe64e65025c6e1790972d1a106eea4cc54 /src/attr_file.c
parent45d387ac78bcf3167d69b736d0b322717bc492d4 (diff)
error-handling: References
Yes, this is error handling solely for `refs.c`, but some of the abstractions leak all ofer the code base.
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;
}