From 6a044fe5ae53a47fd0d67b1e152a6a5b552b4235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Thu, 20 Jun 2019 00:40:12 +0200 Subject: [PATCH] load_jpeg.c Return NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The image is NULL, we can return NULL here. Signed-off-by: Rodolfo García Peñas (kix) --- wrlib/load_jpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrlib/load_jpeg.c b/wrlib/load_jpeg.c index d4e3bcd1..d3938e5c 100644 --- a/wrlib/load_jpeg.c +++ b/wrlib/load_jpeg.c @@ -161,7 +161,7 @@ RImage *RLoadJPEG(const char *file_name) if (buffer[0]) free(buffer[0]); - return image; + return NULL; } jpeg_start_decompress(&cinfo);