From a305c79f7aa615f7cf0bd97a44bcfeeb845ea590 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 21 Feb 2013 13:05:14 -0500 Subject: [PATCH] pull-local: Fix uninitialized variable ref --- src/ostree/ot-builtin-pull-local.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c index 5c1106bc..9fe8a377 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))