From: Bastian Dehn Date: Mon, 29 Apr 2024 10:07:40 +0000 (+0200) Subject: fix image properties set after null check X-Git-Tag: v1.0.1^2~6 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=e3329d60e00e1cc2446add207c55b8624133bfaa;p=sane-kds-s2000w-net.git fix image properties set after null check --- 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();