[ostree] fsck: Fix crash on repositories with < 10 objects
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] fsck: Fix crash on repositories with < 10 objects
- Date: Thu, 25 Jul 2013 16:07:14 +0000 (UTC)
commit 8aa48a5f9ce64f8f72fa14790c818ba44e70caa5
Author: Colin Walters <walters verbum org>
Date: Thu Jul 25 12:06:21 2013 -0400
fsck: Fix crash on repositories with < 10 objects
src/ostree/ot-builtin-fsck.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c
index e0b6499..420921b 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++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]