summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-11-14 10:07:13 +0100
committerPatrick Steinhardt <ps@pks.im>2016-11-14 10:07:55 +0100
commitb81fe7c96da2c9b0b6e4f344bbabaef033fc2ac2 (patch)
tree9d8665024d787a0ff2c803c7562d15046885d1da /src/path.c
parent90a934a5210b60db3d746df3bcb0d6935768ffc1 (diff)
downloadlibgit2-b81fe7c96da2c9b0b6e4f344bbabaef033fc2ac2.tar.gz
path: pass string instead of git_buf to giterr_set
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index e5f04a56a..f91e42242 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1347,7 +1347,7 @@ int git_path_diriter_next(git_path_diriter *diriter)
return GIT_ITEROVER;
giterr_set(GITERR_OS,
- "Could not read directory '%s'", diriter->path);
+ "Could not read directory '%s'", diriter->path.ptr);
return -1;
}
} while (skip_dot && git_path_is_dot_or_dotdot(de->d_name));