summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-06-25 13:53:14 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-06-25 13:53:14 +0800
commitb4e5daeb938e81e2d0010fb14a08a3d40c66a328 (patch)
treec4860f5776a79e4b26b9782a8051844cfb34c30b /utests
parent8cc0f05202749e305b804fe7f952b4f79ab06975 (diff)
utests: fix one bug when create image at one test case.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/compiler_movforphi_undef.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/compiler_movforphi_undef.cpp b/utests/compiler_movforphi_undef.cpp
index 3c5a456..8f1e66e 100644
--- a/utests/compiler_movforphi_undef.cpp
+++ b/utests/compiler_movforphi_undef.cpp
@@ -1,4 +1,5 @@
#include "utest_helper.hpp"
+#include "string.h"
static void compiler_movforphi_undef(void)
{
@@ -17,6 +18,7 @@ static void compiler_movforphi_undef(void)
format.image_channel_order = CL_RGBA;
format.image_channel_data_type = CL_UNSIGNED_INT8;
+ memset(&desc, 0, sizeof(desc));
desc.image_type = CL_MEM_OBJECT_IMAGE2D;
desc.image_width = w;
desc.image_height = h;