qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4711] Use qemu_mallocz.
@ 2008-06-09 13:57 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2008-06-09 13:57 UTC (permalink / raw)
  To: qemu-devel

Revision: 4711
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4711
Author:   pbrook
Date:     2008-06-09 13:57:23 +0000 (Mon, 09 Jun 2008)

Log Message:
-----------
Use qemu_mallocz.

Modified Paths:
--------------
    trunk/exec.c

Modified: trunk/exec.c
===================================================================
--- trunk/exec.c	2008-06-09 13:47:45 UTC (rev 4710)
+++ trunk/exec.c	2008-06-09 13:57:23 UTC (rev 4711)
@@ -721,10 +721,9 @@
     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) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-09 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 13:57 [Qemu-devel] [4711] Use qemu_mallocz Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).