]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix info null pointer check
authorBastian Dehn <hhaalo@arcor.de>
Tue, 9 Apr 2024 17:23:45 +0000 (19:23 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 9 Apr 2024 17:23:45 +0000 (19:23 +0200)
src/kds_s2000w_handler_opts.c

index e07486b7853c1c555133b219ad9fec4c65a2955b..fed2826b855b3e35e2298a0c6716c470aee5c99a 100644 (file)
@@ -221,7 +221,9 @@ void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* inf
                case 6:
                        int* int_value = (int*) value;
                        h->current_metadata->depth = *int_value;
-                       *info = RELOAD_PARAMS;
+                       if (info != NULL)
+                               *info = RELOAD_PARAMS;
+
                        break;
                case 8:
                        value_object = json_object_object_get(config, "SkipBlankPages");