[Coverity Scan] sample issue from CS fix (#12572)

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
This commit is contained in:
Xuejun Zhai 2022-08-18 16:35:47 +08:00 committed by GitHub
parent 730d857cc6
commit 8b75e8d4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ extern "C" {
int image_read(const char* img_path, c_mat_t* img) {
BitMap bmp;
bmp.data = NULL;
int retCode = readBmpImage(img_path, &bmp);
img->mat_data = bmp.data;