aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c3
1 files changed, 1 insertions, 2 deletions
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[] = "<no msg>";
- char *tld_errmsg = nomsg_str;
+ char *tld_errmsg = (char *)"<no msg>";
#else
(void)data;
#endif