summaryrefslogtreecommitdiff
path: root/block/qcow2.h
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-08-18 22:07:32 +0200
committerKevin Wolf <kwolf@redhat.com>2014-08-20 11:51:28 +0200
commit02004bd4ba1ace29812e977d3cd0bc20fd6bf677 (patch)
tree8053459e03f6ad6918978c46ae24900242dac874 /block/qcow2.h
parent440ba08aea3d841996efaf6a6b88426b0d59abf4 (diff)
downloadqemu-02004bd4ba1ace29812e977d3cd0bc20fd6bf677.tar.gz
qemu-02004bd4ba1ace29812e977d3cd0bc20fd6bf677.tar.bz2
qemu-02004bd4ba1ace29812e977d3cd0bc20fd6bf677.zip
qcow2: Use g_try_new0() for cache array
With a variable cache size, the number given to qcow2_cache_create() may be huge. Therefore, use g_try_new0(). While at it, use g_new0() instead of g_malloc0() for allocating the Qcow2Cache object. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.h')
0 files changed, 0 insertions, 0 deletions