Merge "plugins: test: Add memset to avoid grbage values."
diff --git a/plugins/tinyalsa/test/agmmixer.c b/plugins/tinyalsa/test/agmmixer.c
index 1bdf538..40714be 100644
--- a/plugins/tinyalsa/test/agmmixer.c
+++ b/plugins/tinyalsa/test/agmmixer.c
@@ -245,10 +245,12 @@
}
if (type == DEVICE) {
dev_cfg = (struct device_config *)config;
+ memset(dev_cfg, 0, sizeof(*dev_cfg));
strlcpy(dev_cfg->name, intf_name, sizeof(dev_cfg->name));
XML_SetElementHandler(parser, start_tag, NULL);
} else {
grp_cfg = (struct group_config *)config;
+ memset(grp_cfg, 0, sizeof(*grp_cfg));
strlcpy(grp_cfg->name, intf_name, sizeof(grp_cfg->name));
XML_SetElementHandler(parser, start_group_tag, NULL);
}