]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix image properties set after null check
authorBastian Dehn <hhaalo@arcor.de>
Mon, 29 Apr 2024 10:07:40 +0000 (12:07 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 29 Apr 2024 10:07:40 +0000 (12:07 +0200)
src/kds_s2000w_image_converter.c

index 375cca81299ad7ff953613f22f95fa754a6f4843..a7ab26caa4adf7dcc81ad5d8f4bef0920d4d9401 100644 (file)
@@ -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();