fsck: Fix crash on repositories with < 10 objects
This commit is contained in:
1 parent
2bcb024824
commit
8aa48a5f9c
1 file changed
+1
-1
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user