mie: trait: fix trait definitions not being initialised correctly
This commit is contained in:
@@ -10,6 +10,8 @@ struct mie_trait_definition *mie_trait_definition_create(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memset(out, 0x0, sizeof *out);
|
||||
|
||||
out->tr_name = b_strdup(name);
|
||||
if (!out->tr_name) {
|
||||
free(out);
|
||||
|
||||
Reference in New Issue
Block a user