Fix 'longjmp causes uninitialized stack frame' in cURL
authorPilzAdam <adam-k@outlook.com>
Wed, 26 Dec 2012 20:41:00 +0000 (21:41 +0100)
committerPilzAdam <adam-k@outlook.com>
Wed, 26 Dec 2012 20:41:00 +0000 (21:41 +0100)
src/client.cpp

index c5d3b91c8dd3e8bc7dc6a998c159399fc5cf8fb1..cb7afe29f8fe8bc5ed0bc39e5d5dd95c07938c48 100644 (file)
@@ -236,6 +236,7 @@ void * MediaFetchThread::Thread()
                        i != m_file_requests.end(); i++) {
                curl = curl_easy_init();
                assert(curl);
+               curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
                curl_easy_setopt(curl, CURLOPT_URL, (m_remote_url + i->name).c_str());
                curl_easy_setopt(curl, CURLOPT_FAILONERROR, true);
                std::ostringstream stream;