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

@@ -151,7 +151,7 @@ bool cYTFeedParser::getUrl(std::string &url, std::string &answer, CURL *_curl_ha
}
}
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());
@@ -192,7 +192,7 @@ bool cYTFeedParser::DownloadUrl(std::string &url, std::string &file, CURL *_curl
}
}
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());