[ostree] prune: Fix two crasher bugs
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] prune: Fix two crasher bugs
- Date: Tue, 28 Feb 2012 09:27:31 +0000 (UTC)
commit 19bc7ff85fd476f14929d39486dee1455455a610
Author: Colin Walters <walters verbum org>
Date: Mon Feb 27 09:53:44 2012 -0500
prune: Fix two crasher bugs
src/ostree/ot-builtin-prune.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ostree/ot-builtin-prune.c b/src/ostree/ot-builtin-prune.c
index d747d69..30f21c4 100644
--- a/src/ostree/ot-builtin-prune.c
+++ b/src/ostree/ot-builtin-prune.c
@@ -54,7 +54,8 @@ log_verbose (const char *fmt,
va_start (args, fmt);
- g_vprintf ("%s\n", args);
+ g_vprintf (fmt, args);
+ g_print ("\n");
va_end (args);
}
@@ -238,6 +239,8 @@ ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error)
gpointer key, value;
GCancellable *cancellable = NULL;
+ memset (&data, 0, sizeof (data));
+
context = g_option_context_new ("- Search for unreachable objects");
g_option_context_add_main_entries (context, options, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]