mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
revparse: Use more idiomatic error value test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user