Fix "longjmp causes uninitialized stack frame" (serverlist.cpp)
authorIlya Zhuravlev <zhuravlevilya@ya.ru>
Fri, 1 Mar 2013 13:01:23 +0000 (17:01 +0400)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Fri, 1 Mar 2013 13:02:54 +0000 (17:02 +0400)
src/serverlist.cpp

index b5e6aad4e979f5f6063854564f56beb180d54959..d37b5d6371fed45689699d5384e83c601913eef8 100644 (file)
@@ -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);