Commit Diff
--- lib/repository.c +++ lib/repository.c @@ -2332,6 +2332,8 @@ got_repo_get_loose_object_info(int *nobjects, off_t *o goto done; } + memset(&id, 0, sizeof(id)); + id.algo = repo->algo; if (!got_parse_hash_digest(id.hash, id_str, repo->algo)) { free(id_str);