mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-26 14:04:12 +03:00
core: Ensure data is properly initialized
Avoids a crash if we bail early.
This commit is contained in:
parent
a042731673
commit
dce29a984a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user