Skip to content

Commit 936f42c

Browse files
Initialize all variables used in test that fails sporadically
Change-Id: Ifd59c4111390a7855a45ae956a5b4ce3015f2401
1 parent cae66f7 commit 936f42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit_tests/mem_obj/image_validate_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ TEST(ImageValidatorTest, givenNV12Image2dAsParentImageWhenValidateImageZeroSized
914914
cl_image_desc descriptor;
915915
MockContext context;
916916
void *dummyPtr = reinterpret_cast<void *>(0x17);
917-
SurfaceFormatInfo surfaceFormat;
917+
SurfaceFormatInfo surfaceFormat = {};
918918
image.imageFormat.image_channel_order = CL_NV12_INTEL;
919919

920920
descriptor.image_type = CL_MEM_OBJECT_IMAGE2D;

0 commit comments

Comments
 (0)