summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-04-29 14:31:59 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-05-01 12:31:29 -0400
commit5c387b6c5a616d245e51e4ca1935e6ffd78c710e (patch)
treee803c19fe45f9a51cadb925210689f6e70bf2b1b /src/iterator.c
parent7ef005f165518a9f76774c392fa2895dc1b34c96 (diff)
downloadlibgit2-5c387b6c5a616d245e51e4ca1935e6ffd78c710e.tar.gz
git_path_diriter: next shouldn't take path ptr
The _next method shouldn't take a path pointer (and a path_len pointer) as 100% of current users use the full path and ignore the filename. Plus let's add some docs and a unit test.
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iterator.c b/src/iterator.c
index 7e89b77cc..52814bae7 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -1026,7 +1026,7 @@ static int dirload_with_stat(
if ((error = git_path_diriter_init(&diriter, dirpath, flags)) < 0)
goto done;
- while ((error = git_path_diriter_next(&path, &path_len, &diriter)) == 0) {
+ while ((error = git_path_diriter_next(&diriter)) == 0) {
if ((error = git_path_diriter_fullpath(&path, &path_len, &diriter)) < 0)
goto done;