[ostree] pull-local: Fix uninitialized variable ref



commit a305c79f7aa615f7cf0bd97a44bcfeeb845ea590
Author: Colin Walters <walters verbum org>
Date:   Thu Feb 21 13:05:14 2013 -0500

    pull-local: Fix uninitialized variable ref

 src/ostree/ot-builtin-pull-local.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c
index 5c1106b..9fe8a37 100644
--- a/src/ostree/ot-builtin-pull-local.c
+++ b/src/ostree/ot-builtin-pull-local.c
@@ -160,7 +160,6 @@ ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
   int i;
   GHashTableIter hash_iter;
   gpointer key, value;
-  GSConsole *console;
   ot_lhash GHashTable *objects = NULL;
   ot_lobj GFile *src_f = NULL;
   ot_lobj GFile *src_repo_dir = NULL;
@@ -276,7 +275,7 @@ ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
       data->console = gs_console_get ();
 
       if (data->console)
-        gs_console_begin_status_line (console, "", NULL, NULL);
+        gs_console_begin_status_line (data->console, "", NULL, NULL);
 
       g_timeout_add_seconds (1, idle_print_status, data);
       idle_print_status (data);
@@ -285,7 +284,7 @@ ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
 
       idle_print_status (data);
       if (data->console)
-        gs_console_end_status_line (console, NULL, NULL);
+        gs_console_end_status_line (data->console, NULL, NULL);
     }
 
   if (!ostree_repo_commit_transaction (data->dest_repo, NULL, error))


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