Fix "longjmp causes uninitialized stack frame" (serverlist.cpp)

stable-0.4
Ilya Zhuravlev 2013-03-01 17:01:23 +04:00
parent 066b0314b1
commit fceb465fc9
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ std::vector<ServerListSpec> getOnline()
{ {
CURLcode res; 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_URL, (g_settings->get("serverlist_url")+"/list").c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ServerList::WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ServerList::WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &liststring); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &liststring);