Commit c716b9f2 by Edward Thomson

odb: initialize `object` before use

Newer gcc is complaining about `object` being potentially not
initialized; initialize it.
parent eca9e1cf
......@@ -1067,7 +1067,7 @@ int git_odb_expand_ids(
int git_odb_read_header(size_t *len_p, git_object_t *type_p, git_odb *db, const git_oid *id)
{
int error;
git_odb_object *object;
git_odb_object *object = NULL;
error = git_odb__read_header_or_object(&object, len_p, type_p, db, id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment