mie: trait: fix trait definitions not being initialised correctly

This commit is contained in:
2026-01-12 10:40:14 +00:00
parent 2d903f4a94
commit 0fdadb3250

View File

@@ -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);