]> granicus.if.org Git - curl/commitdiff
recover code simplification lost with last commit
authorYang Tse <yangsita@gmail.com>
Tue, 3 Apr 2007 13:26:05 +0000 (13:26 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 3 Apr 2007 13:26:05 +0000 (13:26 +0000)
lib/url.c

index 10daab68734d53f16b1b5cc718b8f41bc250d189..60fe028fbf20e13cc8d3e21fc3defa0cbafbd566 100644 (file)
--- 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