From 021c4ee9d35ee36b267df352a5d0f86a9943c7d0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 27 Apr 2014 16:31:50 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-builtin-show.c b/src/ostree/ot-builtin-show.c index de54535a..9f4568e9 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;