mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 06:47:53 +00:00
revparse: Use more idiomatic error value test
This commit is contained in:
parent
899ec41fa1
commit
1616fa68e5
@ -913,7 +913,7 @@ int git_revparse(
|
||||
}
|
||||
|
||||
error = git_revparse_single(&revspec->from, repo, lstr);
|
||||
if (error == 0)
|
||||
if (!error)
|
||||
error = git_revparse_single(&revspec->to, repo, rstr);
|
||||
|
||||
git__free((void*)lstr);
|
||||
|
Loading…
Reference in New Issue
Block a user