From 1b69c49fb2c3409e8db5a0fa2f73d7132268f6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Sun, 18 May 2014 13:32:42 +0200 Subject: [PATCH] wrlib: Value stored to 'bptr' is never read MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Amadeusz Sławiński --- wrlib/load_jpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrlib/load_jpeg.c b/wrlib/load_jpeg.c index 178d5d9b..ded519e9 100644 --- a/wrlib/load_jpeg.c +++ b/wrlib/load_jpeg.c @@ -136,7 +136,8 @@ RImage *RLoadJPEG(const char *file_name) goto bye; } - bptr = buffer[0] = (JSAMPROW) malloc(cinfo.image_width * cinfo.num_components); + buffer[0] = (JSAMPROW) malloc(cinfo.image_width * cinfo.num_components); + if (!buffer[0]) { RErrorCode = RERR_NOMEMORY; goto bye;