summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShuhei Tanuma <shuhei.tanuma@gmail.com>2011-05-15 20:07:54 +0900
committerShuhei Tanuma <shuhei.tanuma@gmail.com>2011-05-15 20:07:54 +0900
commit71747bcae034d2b0230b5f38c80eb3d185a63b42 (patch)
treeacac1a1cb8e80e77e9a9e426e4d71c874d7d9dde /src
parentf02f4b536cfb5170a8ddc6d0e3b47631defd55ef (diff)
downloadlibgit2-71747bcae034d2b0230b5f38c80eb3d185a63b42.tar.gz
fix git_otype typo when calling `git_odb_read_header`.
Diffstat (limited to 'src')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index e9e495eb1..3dca97764 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);
}