From: Michael Rasmussen Date: Fri, 25 Jan 2019 23:15:04 +0000 (+0100) Subject: No need to configure CURLOPT_WRITEFUNCTION twice X-Git-Tag: 3.17.4~129 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=4bed376320ea5e547f4fedb7e6a6f0ec70e6e1f8 No need to configure CURLOPT_WRITEFUNCTION twice Signed-off-by: Michael Rasmussen --- diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp index ad86191c8..7472bd7ab 100644 --- a/src/plugins/litehtml_viewer/http.cpp +++ b/src/plugins/litehtml_viewer/http.cpp @@ -80,7 +80,6 @@ GInputStream *http::load_url(const gchar *url, GError **error) } else { if (!curl) return NULL; curl_easy_setopt(curl, CURLOPT_URL, url); - curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write_data); curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&data); res = curl_easy_perform(curl); if (res != CURLE_OK) {