diff options
Diffstat (limited to 'hw/applesmc.c')
-rw-r--r-- | hw/applesmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/applesmc.c b/hw/applesmc.c index 23ed3287b4..c47b592747 100644 --- a/hw/applesmc.c +++ b/hw/applesmc.c @@ -170,7 +170,7 @@ static void applesmc_add_key(struct AppleSMCStatus *s, const char *key, { struct AppleSMCData *def; - def = qemu_mallocz(sizeof(struct AppleSMCData)); + def = g_malloc0(sizeof(struct AppleSMCData)); def->key = key; def->len = len; def->data = data; |