From 112317867d573bb053d431f098060cf996d9b2e8 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Fri, 9 Oct 2015 17:56:37 +0200 Subject: 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 Reviewed-by: Laszlo Ersek Signed-off-by: Michael Tokarev --- tests/i440fx-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3