Commit 0deb534d765cf545f7cd65b9f5e79d344b6fbec0

Vicent Marti 2014-03-21T12:25:53

Merge pull request #2197 from linquize/assert-wrong Fix wrong assertion

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb.c b/src/odb.c
index 085eda5..df21719 100644
--- 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) {