diff options
Diffstat (limited to 'hw/core/reset.c')
-rw-r--r-- | hw/core/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/reset.c b/hw/core/reset.c index 9c477f2..36be82c 100644 --- a/hw/core/reset.c +++ b/hw/core/reset.c @@ -40,7 +40,7 @@ static QTAILQ_HEAD(, QEMUResetEntry) reset_handlers = void qemu_register_reset(QEMUResetHandler *func, void *opaque) { - QEMUResetEntry *re = g_malloc0(sizeof(QEMUResetEntry)); + QEMUResetEntry *re = g_new0(QEMUResetEntry, 1); re->func = func; re->opaque = opaque; |