Commit 71747bcae034d2b0230b5f38c80eb3d185a63b42

Shuhei Tanuma 2011-05-15T20:07:54

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);
 	}