summaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bisect.c b/bisect.c
index e583852f27..f7e9cd23f7 100644
--- a/bisect.c
+++ b/bisect.c
@@ -412,11 +412,11 @@ static inline int all_parents_are_visited(struct commit *merge)
static struct commit *extract_merge_to_queue(struct commit_list **merges)
{
- assert(merges);
-
struct commit_list *p, *q;
struct commit *found;
+ assert(merges);
+
/* find a merge that is ready, i.e. all parents have been computed */
for (q = NULL, p = *merges; p && !all_parents_are_visited(p->item);
q = p, p = p->next);