[blob] Initialize members if ever on the stack
This commit is contained in:
parent
60a9175f2c
commit
9fc31db6fa
|
@ -61,12 +61,12 @@ struct hb_blob_t
|
||||||
public:
|
public:
|
||||||
hb_object_header_t header;
|
hb_object_header_t header;
|
||||||
|
|
||||||
const char *data;
|
const char *data = nullptr;
|
||||||
unsigned int length;
|
unsigned int length = 0;
|
||||||
hb_memory_mode_t mode;
|
hb_memory_mode_t mode = (hb_memory_mode_t) 0;
|
||||||
|
|
||||||
void *user_data;
|
void *user_data = nullptr;
|
||||||
hb_destroy_func_t destroy;
|
hb_destroy_func_t destroy = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue