Skip to content

Commit 9ca9958

Browse files
committed
Fixed get_parent_list
1 parent 42329c3 commit 9ca9958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrapper/commit_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ commit_list_wrapper commit_wrapper::get_parents_list() const
3333
std::vector<commit_wrapper> parents_list;
3434
parents_list.reserve(parent_count);
3535

36-
for (size_t i=0; parent_count; ++i)
36+
for (size_t i=0; i < parent_count; ++i)
3737
{
3838
git_commit* parent;
3939
git_commit_parent(&parent, *this, i);

0 commit comments

Comments
 (0)