[ostree] tools: Fix unintialized variables



commit 956b18ace77edd6db1344bac8e6231b8dda605e3
Author: Colin Walters <walters verbum org>
Date:   Tue Apr 1 10:00:18 2014 -0400

    tools: Fix unintialized variables

 src/ostree/ot-admin-builtin-switch.c  |    2 +-
 src/ostree/ot-admin-builtin-upgrade.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-switch.c b/src/ostree/ot-admin-builtin-switch.c
index 55d1fff..6884d9f 100644
--- a/src/ostree/ot-admin-builtin-switch.c
+++ b/src/ostree/ot-admin-builtin-switch.c
@@ -58,7 +58,7 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell
   gs_unref_object OstreeSysrootUpgrader *upgrader = NULL;
   gs_unref_object OstreeAsyncProgress *progress = NULL;
   gboolean changed;
-  GSConsole *console;
+  GSConsole *console = NULL;
   GKeyFile *old_origin;
   GKeyFile *new_origin = NULL;
 
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c
index e6da241..8d0c7cc 100644
--- a/src/ostree/ot-admin-builtin-upgrade.c
+++ b/src/ostree/ot-admin-builtin-upgrade.c
@@ -58,7 +58,7 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel
   gs_unref_object GFile *deployment_origin_path = NULL;
   gs_unref_object OstreeDeployment *merge_deployment = NULL;
   gs_unref_object OstreeDeployment *new_deployment = NULL;
-  GSConsole *console;
+  GSConsole *console = NULL;
   gs_unref_object OstreeAsyncProgress *progress = NULL;
   gboolean changed;
   OstreeSysrootUpgraderPullFlags upgraderpullflags = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]