From 896e1a30b093fbdd501dc2e46624bf2460ce86bb Mon Sep 17 00:00:00 2001
From: PilzAdam <adam-k@outlook.com>
Date: Wed, 26 Dec 2012 21:41:00 +0100
Subject: [PATCH] Fix 'longjmp causes uninitialized stack frame' in cURL

---
 src/client.cpp | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
GitLab