]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove double init curl
authorBastian Dehn <hhaalo@arcor.de>
Tue, 31 Dec 2024 11:21:47 +0000 (12:21 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 31 Dec 2024 11:21:47 +0000 (12:21 +0100)
src/kds_s2000w_client.c

index 950bd2f115cb7c473d2e365adb21380b94cad485..a336e33302d4f95892b38b6bd45503c89caf43ef 100644 (file)
@@ -101,10 +101,6 @@ int kds_s2000w_client_open_session(response* response)
        char* url = NULL;
        char body[50] = {0};
 
-       CURL* curl = curl_easy_init();
-       if(!curl)
-               return CURLE_FAILED_INIT;
-
        CURLU* url_handler = curl_url();
        CURLcode result = curl_url_set(url_handler, CURLUPART_URL, p_config.scanner_url, 0);
        curl_url_set(url_handler, CURLUPART_PATH, "/api/session", 0);