diff options
-rw-r--r-- | target-m68k/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 405cb9af4e..045687f639 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -160,7 +160,7 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model) CPUM68KState *env; static int inited; - env = malloc(sizeof(CPUM68KState)); + env = qemu_mallocz(sizeof(CPUM68KState)); if (!env) return NULL; cpu_exec_init(env); |