From: PilzAdam Date: Wed, 26 Dec 2012 20:41:00 +0000 (+0100) Subject: Fix 'longjmp causes uninitialized stack frame' in cURL X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=896e1a30b093fbdd501dc2e46624bf2460ce86bb;p=zefram%2Fminetest%2Fminetest_engine.git Fix 'longjmp causes uninitialized stack frame' in cURL --- diff --git a/src/client.cpp b/src/client.cpp index c5d3b91c..cb7afe29 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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;