diff options
author | Marc-André Lureau | 2017-10-07 01:49:56 +0200 |
---|---|---|
committer | Thomas Huth | 2017-10-16 13:29:49 +0200 |
commit | 790bbb9768e6a21920e76989f931db80ca67dc10 (patch) | |
tree | 0fc32564560acb9210742fb2a5fa947b8f7d5fb7 /tests/libqos/ahci.c | |
parent | M68K: use g_new() family of functions (diff) | |
download | qemu-790bbb9768e6a21920e76989f931db80ca67dc10.tar.gz qemu-790bbb9768e6a21920e76989f931db80ca67dc10.tar.xz qemu-790bbb9768e6a21920e76989f931db80ca67dc10.zip |
tests: use g_new() family of functions
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[PMD: split of some files in other commits of the same series, add libqtest.c]
Acked-by: John Snow <jsnow@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/libqos/ahci.c')
-rw-r--r-- | tests/libqos/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c index 1ca7f456b5..13c0749582 100644 --- a/tests/libqos/ahci.c +++ b/tests/libqos/ahci.c @@ -843,7 +843,7 @@ AHCICommand *ahci_command_create(uint8_t command_name) AHCICommand *cmd; g_assert(props); - cmd = g_malloc0(sizeof(AHCICommand)); + cmd = g_new0(AHCICommand, 1); g_assert(!(props->dma && props->pio)); g_assert(!(props->lba28 && props->lba48)); g_assert(!(props->read && props->write)); |