Merge branch 'bw/grep-recurse-submodules' into maint
[gitweb.git] / builtin / fsck.c
index 1e4c471b4141e6ec350c4caf58bacafb6ac07b7c..56afe405b8072b3099a23661ac586f673e54ff0e 100644 (file)
@@ -182,12 +182,7 @@ static int traverse_reachable(void)
        if (show_progress)
                progress = start_delayed_progress(_("Checking connectivity"), 0);
        while (pending.nr) {
-               struct object_array_entry *entry;
-               struct object *obj;
-
-               entry = pending.objects + --pending.nr;
-               obj = entry->item;
-               result |= traverse_one_object(obj);
+               result |= traverse_one_object(object_array_pop(&pending));
                display_progress(progress, ++nr);
        }
        stop_progress(&progress);