prune: Fix two crasher bugs
This commit is contained in:
parent
2440338968
commit
19bc7ff85f
|
|
@ -54,7 +54,8 @@ log_verbose (const char *fmt,
|
||||||
|
|
||||||
va_start (args, fmt);
|
va_start (args, fmt);
|
||||||
|
|
||||||
g_vprintf ("%s\n", args);
|
g_vprintf (fmt, args);
|
||||||
|
g_print ("\n");
|
||||||
|
|
||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
@ -238,6 +239,8 @@ ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error)
|
||||||
gpointer key, value;
|
gpointer key, value;
|
||||||
GCancellable *cancellable = NULL;
|
GCancellable *cancellable = NULL;
|
||||||
|
|
||||||
|
memset (&data, 0, sizeof (data));
|
||||||
|
|
||||||
context = g_option_context_new ("- Search for unreachable objects");
|
context = g_option_context_new ("- Search for unreachable objects");
|
||||||
g_option_context_add_main_entries (context, options, NULL);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue