]> Git Repo - qemu.git/blobdiff - block/qcow2-bitmap.c
target/mips: Style improvements in translate.c
[qemu.git] / block / qcow2-bitmap.c
index 8a75366c924dea0b38607556b9ada60adf7678b2..b2487101edec0bdde613c561da897d25adfc74e9 100644 (file)
@@ -29,7 +29,6 @@
 #include "qapi/error.h"
 #include "qemu/cutils.h"
 
-#include "block/block_int.h"
 #include "qcow2.h"
 
 /* NOTICE: BME here means Bitmaps Extension and used as a namespace for
@@ -754,7 +753,7 @@ static int bitmap_list_store(BlockDriverState *bs, Qcow2BitmapList *bm_list,
         dir_offset = *offset;
     }
 
-    dir = g_try_malloc(dir_size);
+    dir = g_try_malloc0(dir_size);
     if (dir == NULL) {
         return -ENOMEM;
     }
This page took 0.026649 seconds and 4 git commands to generate.