]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
do not response init twice
authorBastian Dehn <hhaalo@arcor.de>
Sun, 28 Jan 2024 17:59:35 +0000 (18:59 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 28 Jan 2024 17:59:35 +0000 (18:59 +0100)
src/kds_s2000w_handler.c

index 47293fafe6e849a3c2c1f2eee93d4868d31a1668..5c424682bb70472ca8a1b67dda07880015c0d38c 100644 (file)
@@ -99,7 +99,6 @@ void kds_s2000w_handler_get_option(int option, void* value)
        json_object* value_object = NULL;
        switch(option) {
                case 0:
-                       resp = kds_s2000w_client_response_init();
                        int result = kds_s2000w_client_get_option(state->sessionid, resp);
                        resObj = json_tokener_parse(resp->data);
                        config = json_object_object_get(resObj, "Configuration");