]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix crash simple scan null check
authorBastian Dehn <hhaalo@arcor.de>
Tue, 24 Dec 2024 12:24:25 +0000 (13:24 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 24 Dec 2024 12:24:25 +0000 (13:24 +0100)
src/kds_s2000w_handler_opts.c

index 6e40993bbadf69f67640c561becb488b5d7ad5b9..65725bf92226f0c7af7cc02bd498ea9c07270d9a 100644 (file)
@@ -252,7 +252,8 @@ void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* inf
                        _write_string_value_to_json(value_object, value);
                        value_object = NULL;
 
-                       *info = RELOAD_PARAMS;
+                       if (info != NULL)
+                               *info = RELOAD_PARAMS;
                        break;
                case 4:
                        value_object = json_object_object_get(config, "DPI");