summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-08 15:46:45 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-04-08 16:30:26 +0200
commit56f8e06e4985f7b14c1bf7c526a5195ba24fd6ee (patch)
tree9cc6eac9da8e1dfdab454bfc838e18396a47f269
parent6720eef938d7614cd7a9fd2138a27da3667d62cf (diff)
downloadlibgit2-56f8e06e4985f7b14c1bf7c526a5195ba24fd6ee.tar.gz
Correct grouping of parentheses
git_graph_descendant_of was returning the result of an assignment
-rw-r--r--src/graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph.c b/src/graph.c
index 96fda7add..1c6441140 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -180,7 +180,7 @@ int git_graph_descendant_of(git_repository *repo, const git_oid *commit, const g
if (git_oid_equal(commit, ancestor))
return 0;
- if ((error = git_merge_base(&merge_base, repo, commit, ancestor) < 0))
+ if ((error = git_merge_base(&merge_base, repo, commit, ancestor)) < 0)
return error;
return git_oid_equal(&merge_base, ancestor);