[ostree] show: Fix segfault if we can't find an object
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] show: Fix segfault if we can't find an object
- Date: Tue, 29 Apr 2014 11:42:41 +0000 (UTC)
commit 021c4ee9d35ee36b267df352a5d0f86a9943c7d0
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]