From f156b93fa1c51143537a2cbbde0ac21ec3539b79 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Tue, 9 Apr 2024 19:23:45 +0200 Subject: [PATCH] fix info null pointer check --- src/kds_s2000w_handler_opts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.39.5