From: Yang Tse Date: Thu, 29 Mar 2007 12:29:32 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: curl-7_16_2~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1e5c621c09deae7f21211741a7f6ea994233460;p=thirdparty%2Fcurl.git fix compiler warning --- diff --git a/lib/url.c b/lib/url.c index 3aa7bdcc2d..10daab6873 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2490,7 +2490,8 @@ static bool tld_check_name(struct SessionHandle *data, char *uc_name = NULL; int rc; #ifndef CURL_DISABLE_VERBOSE_STRINGS - char *tld_errmsg = (char *)""; + char nomsg_str[] = ""; + char *tld_errmsg = nomsg_str; #else (void)data; #endif @@ -2502,8 +2503,8 @@ static bool tld_check_name(struct SessionHandle *data, rc = tld_check_lz(uc_name, &err_pos, NULL); #ifndef CURL_DISABLE_VERBOSE_STRINGS - if (rc != TLD_SUCCESS) #ifdef HAVE_TLD_STRERROR + if (rc != TLD_SUCCESS) tld_errmsg = (char *)tld_strerror((Tld_rc)rc); #endif if (rc == TLD_INVALID)