diff options
author | Yang Tse <yangsita@gmail.com> | 2007-03-29 12:29:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-03-29 12:29:32 +0000 |
commit | a1e5c621c09deae7f21211741a7f6ea994233460 (patch) | |
tree | 828fe6887f32f73874fb86c4d8a6eb21a14537f8 /lib | |
parent | f776c1d2eb6d38849ee78b7c322bb435b439e5d8 (diff) |
fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 *)"<no msg>"; + char nomsg_str[] = "<no msg>"; + 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) |