aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPilzAdam <adam-k@outlook.com>2012-12-26 21:41:00 +0100
committerPilzAdam <adam-k@outlook.com>2012-12-26 21:41:00 +0100
commit896e1a30b093fbdd501dc2e46624bf2460ce86bb (patch)
tree936dfc70e2e42c443b3ec5203720021a56b1bf4e /src
parent0f1d2c127cd58aa9b1afa22769dcdaf8f71d05e6 (diff)
downloadminetest-896e1a30b093fbdd501dc2e46624bf2460ce86bb.tar.gz
minetest-896e1a30b093fbdd501dc2e46624bf2460ce86bb.tar.bz2
minetest-896e1a30b093fbdd501dc2e46624bf2460ce86bb.zip
Fix 'longjmp causes uninitialized stack frame' in cURL
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index c5d3b91c8..cb7afe29f 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;