From 8aa48a5f9ce64f8f72fa14790c818ba44e70caa5 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 25 Jul 2013 12:06:21 -0400 Subject: [PATCH] fsck: Fix crash on repositories with < 10 objects --- src/ostree/ot-builtin-fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c index e0b64990..420921b7 100644 --- a/src/ostree/ot-builtin-fsck.c +++ b/src/ostree/ot-builtin-fsck.c @@ -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++; }