diff --git a/modules/imgcodecs/test/test_jpegxl.cpp b/modules/imgcodecs/test/test_jpegxl.cpp index 4f06d6c7fa..6c5aad181f 100644 --- a/modules/imgcodecs/test/test_jpegxl.cpp +++ b/modules/imgcodecs/test/test_jpegxl.cpp @@ -175,7 +175,7 @@ TEST(Imgcodecs_JpegXL, encode_from_uncontinued_image) vector buff; vector param; - bool ret; + bool ret = false; EXPECT_NO_THROW(ret = cv::imencode(".jxl", roi, buff, param)); EXPECT_TRUE(ret); }