[ostree] core: Ensure data is properly initialized
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Ensure data is properly initialized
- Date: Sat, 19 Nov 2011 19:04:07 +0000 (UTC)
commit dce29a984a97d55cc2575410659379e0c645e937
Author: Colin Walters <walters verbum org>
Date: Sat Nov 19 10:45:53 2011 -0500
core: Ensure data is properly initialized
Avoids a crash if we bail early.
src/ostree/ot-builtin-local-clone.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-builtin-local-clone.c b/src/ostree/ot-builtin-local-clone.c
index 11a4503..d9227a2 100644
--- a/src/ostree/ot-builtin-local-clone.c
+++ b/src/ostree/ot-builtin-local-clone.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]