some inits

This commit is contained in:
Jacek Jendrzej
2017-01-30 17:22:41 +01:00
parent 6a3778ba93
commit f4f351e9ba
6 changed files with 13 additions and 12 deletions

View File

@@ -128,7 +128,7 @@ bool cTmdb::getUrl(std::string &url, std::string &answer, CURL *_curl_handle)
}
}
char cerror[CURL_ERROR_SIZE];
char cerror[CURL_ERROR_SIZE] = {0};
curl_easy_setopt(_curl_handle, CURLOPT_ERRORBUFFER, cerror);
printf("try to get [%s] ...\n", url.c_str());
@@ -169,7 +169,7 @@ bool cTmdb::DownloadUrl(std::string url, std::string file, CURL *_curl_handle)
}
}
char cerror[CURL_ERROR_SIZE];
char cerror[CURL_ERROR_SIZE] = {0};
curl_easy_setopt(_curl_handle, CURLOPT_ERRORBUFFER, cerror);
printf("try to get [%s] ...\n", url.c_str());