]> git.proxmox.com Git - qemu.git/commit
g_malloc(0) and g_malloc0(0) return NULL; simplify
authorMarkus Armbruster <armbru@redhat.com>
Tue, 22 Jan 2013 10:07:56 +0000 (11:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Jan 2013 10:14:46 +0000 (11:14 +0100)
commit6528499fa4c3ceaec01ad29d8090ef55918ebfb3
tree616b63f9d35de997afbce013f445530183f0b1a6
parent74cef80c473fe4ce195d5280a34bb2af8492aabb
g_malloc(0) and g_malloc0(0) return NULL; simplify

Once upon a time, it was decided that qemu_malloc(0) should abort.
Switching to glib retired that bright idea.  Some code that was added
to cope with it (e.g. in commits 702ef63b76b6e9) is still around.
Bury it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c
block/vdi.c
hw/9pfs/virtio-9p.c
hw/vhost.c