mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:11:17 +00:00
tests: fix tree walking test
Return -1 to stop the iteration instead of not-0
This commit is contained in:
parent
85f28ba891
commit
fc1826d149
@ -59,7 +59,7 @@ static int treewalk_stop_cb(
|
||||
|
||||
(*count) += 1;
|
||||
|
||||
return (*count == 2);
|
||||
return (*count == 2) ? -1 : 0;
|
||||
}
|
||||
|
||||
static int treewalk_stop_immediately_cb(
|
||||
|
Loading…
Reference in New Issue
Block a user