[ostree/wip/delta2] show: Fix segfault if we can't find an object



commit 52ffeddd7b80b31b3b88bc1f3f6585175e8a288c
Author: Colin Walters <walters verbum org>
Date:   Sun Apr 27 16:31:50 2014 -0400

    show: Fix segfault if we can't find an object
    
    We need to use the original rev here.

 src/ostree/ot-builtin-show.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostree/ot-builtin-show.c b/src/ostree/ot-builtin-show.c
index de54535..9f4568e 100644
--- a/src/ostree/ot-builtin-show.c
+++ b/src/ostree/ot-builtin-show.c
@@ -269,7 +269,7 @@ ostree_builtin_show (int argc, char **argv, OstreeRepo *repo, GCancellable *canc
               gs_unref_variant GVariant *xattrs = NULL;
               GFileType filetype;
               
-              if (!ostree_repo_load_file (repo, resolved_rev, NULL, &finfo, &xattrs,
+              if (!ostree_repo_load_file (repo, rev, NULL, &finfo, &xattrs,
                                           cancellable, error))
                 goto out;
 


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