show: Fix segfault if we can't find an object

We need to use the original rev here.
This commit is contained in:
Colin Walters committed 2014-04-29 07:42:30 -04:00
1 parent 5346e0615b
commit 021c4ee9d3
1 file changed
+1 -1
+1 -1
View File
@@ -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;