diff options
Diffstat (limited to 'src/attr_file.c')
-rw-r--r-- | src/attr_file.c | 5 |
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; } |