diff --git a/lib/url.c b/lib/url.c index 10daab687..60fe028fb 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2490,8 +2490,7 @@ static bool tld_check_name(struct SessionHandle *data, char *uc_name = NULL; int rc; #ifndef CURL_DISABLE_VERBOSE_STRINGS - char nomsg_str[] = ""; - char *tld_errmsg = nomsg_str; + char *tld_errmsg = (char *)""; #else (void)data; #endif