summaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2013-03-01 17:01:23 +0400
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-03-01 17:02:54 +0400
commitfceb465fc9d401aeba901dd59c937a9239bcbb7a (patch)
tree100aab5f3e1007633f742321f51f1890d352819c /src/serverlist.cpp
parent066b0314b14b1c59e7d6c0d35345562e6a0c644c (diff)
downloadminetest-fceb465fc9d401aeba901dd59c937a9239bcbb7a.tar.gz
minetest-fceb465fc9d401aeba901dd59c937a9239bcbb7a.tar.bz2
minetest-fceb465fc9d401aeba901dd59c937a9239bcbb7a.zip
Fix "longjmp causes uninitialized stack frame" (serverlist.cpp)
Diffstat (limited to 'src/serverlist.cpp')
-rw-r--r--src/serverlist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp
index b5e6aad4e..d37b5d637 100644
--- a/src/serverlist.cpp
+++ b/src/serverlist.cpp
@@ -84,6 +84,7 @@ std::vector<ServerListSpec> getOnline()
{
CURLcode res;
+ curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_URL, (g_settings->get("serverlist_url")+"/list").c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ServerList::WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &liststring);