qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [4711] Use qemu_mallocz.


From: Paul Brook
Subject: [Qemu-devel] [4711] Use qemu_mallocz.
Date: Mon, 09 Jun 2008 13:57:23 +0000

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) {






reply via email to

[Prev in Thread] Current Thread [Next in Thread]