compiler warning: fix

Fix compiler warning: enumerated type mixed with another type
This commit is contained in:
Yang Tse 2011-05-21 14:59:03 +02:00
parent d30ddd9977
commit 79cc6c244a

View File

@ -1255,7 +1255,7 @@ static CURLcode verifyhost(struct connectdata *conn,
peer_CN = NULL;
else {
/* convert peer_CN from UTF8 */
size_t rc = Curl_convert_from_utf8(data, peer_CN, strlen(peer_CN));
CURLcode rc = Curl_convert_from_utf8(data, peer_CN, strlen(peer_CN));
/* Curl_convert_from_utf8 calls failf if unsuccessful */
if(rc) {
OPENSSL_free(peer_CN);