mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
lib: Use g_new0 rather than g_malloc0
Port some of the g_malloc0 users to g_new0.
This commit is contained in:
committed by
Benjamin Berg
parent
d1fb1e26f3
commit
f2b932960e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user