summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-05-29 15:46:56 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-05-29 15:46:56 +0100
commit9f20b6d32ce9e971a251dca6b4e41a574bb3511d (patch)
treea4c821b5db74a673fcde0c24bec852a23b57268d
parent056f1b23599891fced002d18d716bdfdb7b8f15d (diff)
downloadlibgit2-fixups.tar.bz2
Fix off-by-one like in 8060cdc93cc185e9a71c1aa17091dc0a5ab14457 of upstreamHEADfixups
-rw-r--r--src/revwalk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 1a092771..db382ecc 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -274,8 +274,8 @@ static int commit_parse(git_revwalk *walk, commit_object *commit)
static int interesting(git_pqueue *list)
{
unsigned int i;
- for (i = 1; i < git_pqueue_size(list); i++) {
- commit_object *commit = list->d[i];
+ for (i = 0; i < git_pqueue_size(list); i++) {
+ commit_object *commit = list->d[i+1];
if ((commit->flags & STALE) == 0)
return 1;
}