Commit 1616fa68 by Evan Hanson

revparse: Use more idiomatic error value test

parent 899ec41f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment