mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-24 06:04:16 +03:00
core: Fix crasher in "rev-parse"
This commit is contained in:
parent
76bc35186e
commit
eb4302517f
@ -62,6 +62,7 @@ ostree_builtin_rev_parse (int argc, char **argv, GFile *repo_path, GError **erro
|
||||
{
|
||||
rev = argv[i];
|
||||
g_free (resolved_rev);
|
||||
resolved_rev = NULL;
|
||||
if (!ostree_repo_resolve_rev (repo, rev, FALSE, &resolved_rev, error))
|
||||
goto out;
|
||||
g_print ("%s\n", resolved_rev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user