diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-02-05 09:29:37 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-02-05 09:29:37 +0200 |
| commit | c836c332f17ff2da8bdf6d18fb3d59eac2586ca9 (patch) | |
| tree | 724bddb50a0c8f25e59845f9bd0587fb6724457a /tests | |
| parent | 4569bfa55a44be3a03cf925df44bf1af0f21ddaa (diff) | |
| download | libgit2-c836c332f17ff2da8bdf6d18fb3d59eac2586ca9.tar.gz | |
Make more methods return error codes
git_revwalk_next now returns an error code when the iteration is over.
git_repository_index now returns an error code when the index file could
not be opened.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/t05-revwalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t05-revwalk.c b/tests/t05-revwalk.c index 06f933fb4..473ea3350 100644 --- a/tests/t05-revwalk.c +++ b/tests/t05-revwalk.c @@ -99,7 +99,7 @@ static int test_walk(git_revwalk *walk, git_commit *start_from, result_array[i] = -1; i = 0; - while ((commit = git_revwalk_next(walk)) != NULL) + while (git_revwalk_next(&commit, walk) == GIT_SUCCESS) result_array[i++] = get_commit_index(commit); for (i = 0; i < results_count; ++i) |
