From: pbrook Date: Mon, 9 Jun 2008 13:57:23 +0000 (+0000) Subject: Use qemu_mallocz. X-Git-Tag: stefano.display-merge-start~1078 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b2a7081acb46b0cdcbec0346672d86fc77ebfeb5;p=qemu-xen-4.0-testing.git Use qemu_mallocz. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4711 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/exec.c b/exec.c index 18f8f5f5..48600e49 100644 --- a/exec.c +++ b/exec.c @@ -721,10 +721,9 @@ static void build_page_bitmap(PageDesc *p) int n, tb_start, tb_end; TranslationBlock *tb; - p->code_bitmap = qemu_malloc(TARGET_PAGE_SIZE / 8); + p->code_bitmap = qemu_mallocz(TARGET_PAGE_SIZE / 8); if (!p->code_bitmap) return; - memset(p->code_bitmap, 0, TARGET_PAGE_SIZE / 8); tb = p->first_tb; while (tb != NULL) {