fsck: Fix crash on repositories with < 10 objects

This commit is contained in:
Colin Walters committed 2013-07-25 12:06:21 -04:00
1 parent 2bcb024824
commit 8aa48a5f9c
1 file changed
+1 -1
+1 -1
View File
@@ -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++;
}