[repacker] Fix missing initilization of obj in vertex_t.

This commit is contained in:
Garret Rieger 2022-01-19 15:31:35 -08:00 committed by Behdad Esfahbod
parent 1522015bb2
commit 112cb9fe69
1 changed files with 5 additions and 18 deletions

View File

@ -42,26 +42,13 @@ struct graph_t
{ {
struct vertex_t struct vertex_t
{ {
vertex_t () :
distance (0),
space (0),
parents (),
start (0),
end (0),
priority(0) {}
void fini () {
obj.fini ();
parents.fini ();
}
hb_serialize_context_t::object_t obj; hb_serialize_context_t::object_t obj;
int64_t distance; int64_t distance = 0 ;
int64_t space; int64_t space = 0 ;
hb_vector_t<unsigned> parents; hb_vector_t<unsigned> parents;
unsigned start; unsigned start = 0;
unsigned end; unsigned end = 0;
unsigned priority; unsigned priority = 0;
bool is_shared () const bool is_shared () const
{ {