[blob] Initialize members if ever on the stack

This commit is contained in:
Behdad Esfahbod 2022-07-20 16:03:02 -06:00
parent 60a9175f2c
commit 9fc31db6fa
1 changed files with 5 additions and 5 deletions

View File

@ -61,12 +61,12 @@ struct hb_blob_t
public:
hb_object_header_t header;
const char *data;
unsigned int length;
hb_memory_mode_t mode;
const char *data = nullptr;
unsigned int length = 0;
hb_memory_mode_t mode = (hb_memory_mode_t) 0;
void *user_data;
hb_destroy_func_t destroy;
void *user_data = nullptr;
hb_destroy_func_t destroy = nullptr;
};