1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

curl tool: fix a compiler warning

This commit is contained in:
Yang Tse 2011-09-24 18:33:59 +02:00
parent c6702c7d3f
commit b3ea4881a8

View File

@ -4339,8 +4339,8 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
else else
#endif #endif
if(res && config->showerror) { if(res && config->showerror) {
fprintf(config->errors, "curl: (%d) %s\n", res, fprintf(config->errors, "curl: (%d) %s\n", res, (errorbuffer[0]) ?
(errorbuffer[0]) ? errorbuffer: curl_easy_strerror(res)); errorbuffer : curl_easy_strerror((CURLcode)res));
if(res == CURLE_SSL_CACERT) if(res == CURLE_SSL_CACERT)
fprintf(config->errors, "%s%s", fprintf(config->errors, "%s%s",
CURL_CA_CERT_ERRORMSG1, CURL_CA_CERT_ERRORMSG2); CURL_CA_CERT_ERRORMSG1, CURL_CA_CERT_ERRORMSG2);