fsck: Fix crash on repositories with < 10 objects
This commit is contained in:
parent
2bcb024824
commit
8aa48a5f9c
|
|
@ -223,7 +223,7 @@ fsck_reachable_objects_from_commits (OstreeRepo *repo,
|
|||
cancellable, error))
|
||||
goto out;
|
||||
|
||||
if (i % mod == 0)
|
||||
if (mod == 0 || (i % mod == 0))
|
||||
g_print ("%u/%u objects\n", i, count);
|
||||
i++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue