fsck: Fix crash on repositories with < 10 objects

This commit is contained in:
Colin Walters 2013-07-25 12:06:21 -04:00
parent 2bcb024824
commit 8aa48a5f9c
1 changed files with 1 additions and 1 deletions

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++;
}