fix compiler warning
This commit is contained in:
@@ -2490,7 +2490,8 @@ static bool tld_check_name(struct SessionHandle *data,
|
|||||||
char *uc_name = NULL;
|
char *uc_name = NULL;
|
||||||
int rc;
|
int rc;
|
||||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||||
char *tld_errmsg = (char *)"<no msg>";
|
char nomsg_str[] = "<no msg>";
|
||||||
|
char *tld_errmsg = nomsg_str;
|
||||||
#else
|
#else
|
||||||
(void)data;
|
(void)data;
|
||||||
#endif
|
#endif
|
||||||
@@ -2502,8 +2503,8 @@ static bool tld_check_name(struct SessionHandle *data,
|
|||||||
|
|
||||||
rc = tld_check_lz(uc_name, &err_pos, NULL);
|
rc = tld_check_lz(uc_name, &err_pos, NULL);
|
||||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||||
if (rc != TLD_SUCCESS)
|
|
||||||
#ifdef HAVE_TLD_STRERROR
|
#ifdef HAVE_TLD_STRERROR
|
||||||
|
if (rc != TLD_SUCCESS)
|
||||||
tld_errmsg = (char *)tld_strerror((Tld_rc)rc);
|
tld_errmsg = (char *)tld_strerror((Tld_rc)rc);
|
||||||
#endif
|
#endif
|
||||||
if (rc == TLD_INVALID)
|
if (rc == TLD_INVALID)
|
||||||
|
|||||||
Reference in New Issue
Block a user