diff options
author | Thomas Huth <thuth@redhat.com> | 2015-10-09 17:56:37 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-11-06 15:42:38 +0300 |
commit | 112317867d573bb053d431f098060cf996d9b2e8 (patch) | |
tree | dafcf104ba0bbea1f70f43152d551193d154da9d /tests | |
parent | a6c6d827605e416f0e127a325ee1efc9cf16afa5 (diff) | |
download | qemu-112317867d573bb053d431f098060cf996d9b2e8.tar.gz qemu-112317867d573bb053d431f098060cf996d9b2e8.tar.bz2 qemu-112317867d573bb053d431f098060cf996d9b2e8.zip |
tests/i44fx-test: No need for zeroing memory before memset
Change a g_malloc0 into g_malloc since the following
memset fills the whole buffer anyway.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i440fx-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c index d0bc8de25a..7fa170990f 100644 --- a/tests/i440fx-test.c +++ b/tests/i440fx-test.c @@ -191,7 +191,7 @@ static void write_area(uint32_t start, uint32_t end, uint8_t value) uint32_t size = end - start + 1; uint8_t *data; - data = g_malloc0(size); + data = g_malloc(size); memset(data, value, size); memwrite(start, data, size); |