mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
some inits
Origin commit data
------------------
Branch: ni/coolstream
Commit: f4f351e9ba
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-30 (Mon, 30 Jan 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -178,7 +178,7 @@ Example:
|
||||
CLuaCurl *D = CurlCheckData(L, 1);
|
||||
if (!D) return 0;
|
||||
|
||||
char errMsg[1024];
|
||||
char errMsg[1024]={0};
|
||||
CURL *curl_handle = curl_easy_init();
|
||||
if (!curl_handle) {
|
||||
memset(errMsg, '\0', sizeof(errMsg));
|
||||
@@ -309,7 +309,7 @@ Example:
|
||||
#endif
|
||||
}
|
||||
|
||||
char cerror[CURL_ERROR_SIZE];
|
||||
char cerror[CURL_ERROR_SIZE]={0};
|
||||
curl_easy_setopt(curl_handle, CURLOPT_ERRORBUFFER, cerror);
|
||||
|
||||
printf("\n[curl:download] download %s => %s\n", url.c_str(), (toFile)?outputfile.c_str():"return string");
|
||||
@@ -330,7 +330,7 @@ Example:
|
||||
CURLcode res1 = curl_easy_getinfo(curl_handle, CURLINFO_EFFECTIVE_URL, &deffektive);
|
||||
CURLcode res2 = curl_easy_getinfo(curl_handle, CURLINFO_REDIRECT_URL, &dredirect);
|
||||
|
||||
char msg1[1024];
|
||||
char msg1[1024]={0};
|
||||
memset(msg1, '\0', sizeof(msg1));
|
||||
snprintf(msg1, sizeof(msg1)-1, "\n[curl:download] O.K. size: %.0f bytes, time: %.02f sec.", dsize, dtime);
|
||||
msg = msg1;
|
||||
|
Reference in New Issue
Block a user