diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-05-06 21:14:58 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-05-06 21:29:55 +0200 |
commit | 6e9afb97d14545f9cea292f581de89d610ae8c07 (patch) | |
tree | 475969e6faf7e45f7c7a75a25c849b8383807cae /src/object.c | |
parent | d2c16e9ac4921e94eb5db972e6b8452d71a623fc (diff) | |
download | libgit2-6e9afb97d14545f9cea292f581de89d610ae8c07.tar.gz |
object: fix a brace
The brace in the check for peel's return was surrounding the wrong
thing, which made 'error' be set to 1 when there was an error instead of
the error code.
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index 3847a0739..93068b85f 100644 --- a/src/object.c +++ b/src/object.c @@ -375,7 +375,7 @@ int git_object_lookup_bypath( assert(out && treeish && path); - if ((error = git_object_peel((git_object**)&tree, treeish, GIT_OBJ_TREE) < 0) || + if ((error = git_object_peel((git_object**)&tree, treeish, GIT_OBJ_TREE)) < 0 || (error = git_tree_entry_bypath(&entry, tree, path)) < 0) { goto cleanup; |