Commit b12b77231f96a2a592746847c7cde8a952b85154

Vicent Martí 2011-05-15T10:16:36

Merge pull request #185 from chobie/development fix git_otype typo when calling `git_odb_read_header`.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb.c b/src/odb.c
index e9e495e..3dca977 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -444,7 +444,7 @@ int git_odb_read_header(size_t *len_p, git_otype *type_p, git_odb *db, const git
 			return error;
 
 		*len_p = object->raw.len;
-		*type_p = object->raw.len;
+		*type_p = object->raw.type;
 		git_odb_object_close(object);
 	}