diff options
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r-- | sql/hostname.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc index 1c52a5363d3..fcf8d2753b8 100644 --- a/sql/hostname.cc +++ b/sql/hostname.cc @@ -123,6 +123,7 @@ void reset_host_errors(struct in_addr *in) my_string ip_to_hostname(struct in_addr *in, uint *errors) { + uint i; host_entry *entry; DBUG_ENTER("ip_to_hostname"); @@ -222,7 +223,7 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors) } /* Check that 'gethostbyname' returned the used ip */ - for (uint i=0; check->h_addr_list[i]; i++) + for (i=0; check->h_addr_list[i]; i++) { if (*(uint32*)(check->h_addr_list)[i] == in->s_addr) { |