From e3329d60e00e1cc2446add207c55b8624133bfaa Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 29 Apr 2024 12:07:40 +0200 Subject: [PATCH] fix image properties set after null check --- src/kds_s2000w_image_converter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kds_s2000w_image_converter.c b/src/kds_s2000w_image_converter.c index 375cca8..a7ab26c 100644 --- a/src/kds_s2000w_image_converter.c +++ b/src/kds_s2000w_image_converter.c @@ -36,14 +36,14 @@ void kds_s2000w_convert_to_pnm_with_depth(blobdata* in, CatchException(exception); } - input_image->properties = NULL; - if (input_image == NULL) { DestroyImageInfo(image_info); DestroyExceptionInfo(exception); return; } + input_image->properties = NULL; + DestroyImageInfo(image_info); DestroyExceptionInfo(exception); exception = AcquireExceptionInfo(); -- 2.39.5