From: Gisle Vanem Date: Wed, 28 Mar 2007 04:23:33 +0000 (+0000) Subject: Simplified code around 'tld_errmsg' a bit. X-Git-Tag: curl-7_16_2~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25c064c8888134be91e157d6542e4667b8cf5742;p=thirdparty%2Fcurl.git Simplified code around 'tld_errmsg' a bit. --- diff --git a/lib/url.c b/lib/url.c index 43853f367e..95eab6da12 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2490,10 +2490,7 @@ static bool tld_check_name(struct SessionHandle *data, char *uc_name = NULL; int rc; #ifndef CURL_DISABLE_VERBOSE_STRINGS - char *tld_errmsg; -#ifndef HAVE_TLD_STRERROR - char no_msg[] = ""; -#endif + char *tld_errmsg = ""; #else (void)data; #endif @@ -2508,8 +2505,6 @@ static bool tld_check_name(struct SessionHandle *data, if (rc != TLD_SUCCESS) #ifdef HAVE_TLD_STRERROR tld_errmsg = (char *)tld_strerror((Tld_rc)rc); -#else - tld_errmsg = no_msg; #endif if (rc == TLD_INVALID) infof(data, "WARNING: %s; pos %u = `%c'/0x%02X\n",