From: Ilya Zhuravlev Date: Fri, 1 Mar 2013 13:01:23 +0000 (+0400) Subject: Fix "longjmp causes uninitialized stack frame" (serverlist.cpp) X-Git-Tag: 0.4.5~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fceb465fc9d401aeba901dd59c937a9239bcbb7a;p=oweals%2Fminetest.git Fix "longjmp causes uninitialized stack frame" (serverlist.cpp) --- 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 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);