aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-05-07 10:55:01 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-05-07 10:55:19 +0100
commit6f8085ca77d9572f902e52702d86c83b220736a7 (patch)
tree77e838441e83ea55b9ae696dd9b9b42bd1087dc1 /lib
parent3b59753c11914986b7479b934620b980ae996c7d (diff)
url.c: Fixed compilation warning/error
Depending on compiler line 3505 could generate the following warning or error: * warning: ISO C90 forbids mixed declarations and code * A declaration cannot appear after an executable statement in a block * error C2275: 'size_t' : illegal use of this type as an expression
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index c9339210c..b0aade1bf 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3496,13 +3496,14 @@ static bool tld_check_name(struct SessionHandle *data,
static void fix_hostname(struct SessionHandle *data,
struct connectdata *conn, struct hostname *host)
{
+ size_t len;
+
#ifndef USE_LIBIDN
(void)data;
(void)conn;
#elif defined(CURL_DISABLE_VERBOSE_STRINGS)
(void)conn;
#endif
- size_t len;
/* set the name we use to display the host name */
host->dispname = host->name;