load_jpeg.c Return NULL

The image is NULL, we can return NULL here.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2019-06-20 22:04:31 +01:00
committed by Carlos R. Mafra
parent 6dd1498f7c
commit 6a044fe5ae
+1 -1
View File
@@ -161,7 +161,7 @@ RImage *RLoadJPEG(const char *file_name)
if (buffer[0])
free(buffer[0]);
return image;
return NULL;
}
jpeg_start_decompress(&cinfo);