prune: Fix two crasher bugs

This commit is contained in:
Colin Walters 2012-02-27 09:53:44 -05:00
parent 2440338968
commit 19bc7ff85f

View File

@ -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);