Try to fix aix problem
This commit is contained in:
parent
5dfa7ed590
commit
0488236e3a
@ -291,6 +291,9 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
|
|||||||
/* In windows, this will init the winsock stuff */
|
/* In windows, this will init the winsock stuff */
|
||||||
::curl_global_init(CURL_GLOBAL_ALL);
|
::curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
|
std::string::size_type cc, kk;
|
||||||
|
for ( cc = 0; cc < files.size(); cc ++ )
|
||||||
|
{
|
||||||
/* get a curl handle */
|
/* get a curl handle */
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl)
|
if(curl)
|
||||||
@ -313,9 +316,6 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
|
|||||||
}
|
}
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
||||||
std::string::size_type cc, kk;
|
|
||||||
for ( cc = 0; cc < files.size(); cc ++ )
|
|
||||||
{
|
|
||||||
std::string file = remoteprefix + files[cc];
|
std::string file = remoteprefix + files[cc];
|
||||||
std::string ofile = "";
|
std::string ofile = "";
|
||||||
for ( kk = 0; kk < file.size(); kk ++ )
|
for ( kk = 0; kk < file.size(); kk ++ )
|
||||||
@ -352,10 +352,10 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
|
|||||||
::curl_global_cleanup();
|
::curl_global_cleanup();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// always cleanup
|
// always cleanup
|
||||||
::curl_easy_cleanup(curl);
|
::curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
::curl_global_cleanup();
|
::curl_global_cleanup();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user