Fix stack overflow problem on some platform

This commit is contained in:
Tindy X committed 2020-02-26 02:11:06 +08:00
1 parent 844c68df9a
commit 4958e30657
1 file changed
+3 -3
+3 -3
View File
@@ -57,7 +57,7 @@ static std::string curlGet(std::string url, std::string proxy, std::string &resp
{ {
CURL *curl_handle; CURL *curl_handle;
std::string data; std::string data;
int retVal = 0; long retVal = 0;
curl_init(); curl_init();
@@ -164,7 +164,7 @@ int curlPost(std::string url, std::string data, std::string proxy, std::string a
CURL *curl_handle; CURL *curl_handle;
CURLcode res; CURLcode res;
struct curl_slist *list = NULL; struct curl_slist *list = NULL;
int retVal = 0; long retVal = 0;
curl_init(); curl_init();
curl_handle = curl_easy_init(); curl_handle = curl_easy_init();
@@ -200,7 +200,7 @@ int curlPatch(std::string url, std::string data, std::string proxy, std::string
{ {
CURL *curl_handle; CURL *curl_handle;
CURLcode res; CURLcode res;
int retVal = 0; long retVal = 0;
struct curl_slist *list = NULL; struct curl_slist *list = NULL;
curl_init(); curl_init();