From 739495027b6c2b36ff4607bfe5fdd420ec4c3429 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 May 2017 20:03:39 +0200 Subject: [PATCH] Cleanups --- tasks/task_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_image.c b/tasks/task_image.c index 300456e36d..98148cf68f 100644 --- a/tasks/task_image.c +++ b/tasks/task_image.c @@ -243,7 +243,7 @@ static int cb_nbio_image_menu_thumbnail(void *data, size_t len) struct nbio_image_handle *image = nbio ? (struct nbio_image_handle*)nbio->data : NULL; - if (!nbio) + if (!image) goto error; handle = image_transfer_new(image->type);