summaryrefslogtreecommitdiff
path: root/src/revparse.c
diff options
context:
space:
mode:
authorEvan Hanson <evhan@foldling.org>2013-08-15 17:25:05 +1200
committerEvan Hanson <evhan@foldling.org>2013-08-15 17:25:05 +1200
commit1616fa68e520dbd29b839335065599f8a2b93a6f (patch)
treec219eaf77fc7e163e815dff19018355fad361953 /src/revparse.c
parent899ec41fa18a13db50ae3c3fd1c4bb4045364e6d (diff)
downloadlibgit2-1616fa68e520dbd29b839335065599f8a2b93a6f.tar.gz
revparse: Use more idiomatic error value test
Diffstat (limited to 'src/revparse.c')
-rw-r--r--src/revparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revparse.c b/src/revparse.c
index 2fdad0049..b84f0037f 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -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);