hw/vfio/platform: replace g_malloc0_n by g_new0
authorEric Auger <eric.auger@linaro.org>
Thu, 11 Jun 2015 08:44:40 +0000 (09:44 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Jun 2015 13:22:57 +0000 (14:22 +0100)
commit0b70743d4f4f260b2fe6ed53fecc6bc6cda13910
treee2e0d971738df0e199a36e43ccbac1ddb8886e47
parent169b71331eaff7a28e3d4fabe8733e7db91f01aa
hw/vfio/platform: replace g_malloc0_n by g_new0

g_malloc0_n() is introduced since glib-2.24 while QEMU currently
requires glib-2.22. This may cause a link error on some distributions.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/vfio/platform.c