core: Ensure data is properly initialized

Avoids a crash if we bail early.
This commit is contained in:
Colin Walters 2011-11-19 10:45:53 -05:00
parent a042731673
commit dce29a984a

View File

@ -158,6 +158,8 @@ ostree_builtin_local_clone (int argc, char **argv, const char *repo_path, GError
context = g_option_context_new ("DEST ... - Create new repository DEST");
g_option_context_add_main_entries (context, options, NULL);
memset (&data, 0, sizeof (data));
if (!g_option_context_parse (context, &argc, &argv, error))
goto out;