]> git.proxmox.com Git - libgit2.git/commitdiff
Fix wrong assertion
authorLinquize <linquize@yahoo.com.hk>
Fri, 21 Mar 2014 09:36:34 +0000 (17:36 +0800)
committerLinquize <linquize@yahoo.com.hk>
Fri, 21 Mar 2014 09:36:34 +0000 (17:36 +0800)
Fixes issue #2196

src/odb.c

index 085eda594054a823301e932e7dfae751817efb1d..df21719619889dfa9f5ae8f7e99d235cf51e0c7e 100644 (file)
--- a/src/odb.c
+++ b/src/odb.c
@@ -445,7 +445,7 @@ int git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t pos)
 {
        backend_internal *internal;
 
-       assert(odb && odb);
+       assert(out && odb);
        internal = git_vector_get(&odb->backends, pos);
 
        if (internal && internal->backend) {