From: Bastian Dehn Date: Tue, 9 Apr 2024 17:23:45 +0000 (+0200) Subject: fix info null pointer check X-Git-Tag: v1.0.0^2~23 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=f156b93fa1c51143537a2cbbde0ac21ec3539b79;p=sane-kds-s2000w-net.git fix info null pointer check --- diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index e07486b..fed2826 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -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");