Allocate cleared memory for cpu state.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5848 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
pbrook 2008-12-01 14:29:13 +00:00
parent 0c9c3a9e3a
commit 6ad1d22b15
1 changed files with 1 additions and 1 deletions

View File

@ -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);