utests: fix warning message 03/173803/2
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Mar 2018 05:11:32 +0000 (14:11 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 26 Mar 2018 05:14:40 +0000 (14:14 +0900)
Change-Id: Ied96807659fdc9189064edf1a6e2c1eaad20df36

utests/src/ut_tdm_backend_display.cpp

index 58127a8..e836407 100644 (file)
@@ -81,7 +81,7 @@ void TDMBackendBasic::SetUp(void)
                ASSERT_GT(count, 0);
 
                layer_count += count;
-               layers = (tdm_layer**)realloc((void*)layers, sizeof(tdm_layer*) * layer_count);
+               layers = realloc(layers, layer_count * sizeof(tdm_layer*));
                ASSERT_NE(layers, NULL);
 
                for (int l = 0; l < count; l++) {