diff options
author | Colin Walters <walters@verbum.org> | 2014-06-21 17:36:23 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-06-21 18:08:49 -0400 |
commit | 40f99f764e9c7be5e4ee49fdcf7cf1af1b4afa2d (patch) | |
tree | 05bb2fed26827a1ae086078c7bb59d09ff780ced | |
parent | 4d04b148d8b6abad6b6ebc2685e67fc9421b308f (diff) | |
download | ostree-40f99f764e9c7be5e4ee49fdcf7cf1af1b4afa2d.tar.gz |
[staticanalysis]: Delete an unused variable
https://bugzilla.gnome.org/show_bug.cgi?id=732020
-rw-r--r-- | src/ostree/ot-builtin-checkout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ostree/ot-builtin-checkout.c b/src/ostree/ot-builtin-checkout.c index ff055e75..fae461f0 100644 --- a/src/ostree/ot-builtin-checkout.c +++ b/src/ostree/ot-builtin-checkout.c @@ -178,7 +178,6 @@ ostree_builtin_checkout (int argc, char **argv, OstreeRepo *repo, GCancellable * const char *destination; gs_free char *resolved_commit = NULL; gs_unref_object GFile *checkout_target = NULL; - gs_unref_object GFile *checkout_target_tmp = NULL; context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree"); g_option_context_add_main_entries (context, options, NULL); @@ -218,7 +217,7 @@ ostree_builtin_checkout (int argc, char **argv, OstreeRepo *repo, GCancellable * checkout_target = g_file_new_for_path (destination); if (!process_one_checkout (repo, resolved_commit, opt_subpath, - checkout_target_tmp ? checkout_target_tmp : checkout_target, + checkout_target, cancellable, error)) goto out; } |