lib: Use g_new0 rather than g_malloc0

Port some of the g_malloc0 users to g_new0.
This commit is contained in:
Marco Trevisan (Treviño)
2019-11-20 13:41:35 +01:00
committed by Benjamin Berg
parent d1fb1e26f3
commit f2b932960e
3 changed files with 3 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ fpi_ssm_new (FpDevice *dev,
BUG_ON (nr_states < 1);
machine = g_malloc0 (sizeof (*machine));
machine = g_new0 (FpiSsm, 1);
machine->handler = handler;
machine->nr_states = nr_states;
machine->dev = dev;