mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 15:58:29 +00:00
Correct grouping of parentheses
git_graph_descendant_of was returning the result of an assignment
This commit is contained in:
parent
6720eef938
commit
56f8e06e49
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user