summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-06-04 08:29:08 +0300
committermonty@hundin.mysql.fi <>2002-06-04 08:29:08 +0300
commitfc8490a111c7bd979e927c105e731a1c4881c0a8 (patch)
treed273a823d7f94fdea3e5775b8d8cd0b912812b0f /sql/hostname.cc
parentee6bd848804192d9bb4258ccf84b61b774190673 (diff)
parent8cba72fe1f106049b14167898f8aea2a15519065 (diff)
downloadmariadb-git-fc8490a111c7bd979e927c105e731a1c4881c0a8.tar.gz
merge with 4.0 to get last fixes to last merge
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 0a9be8a3213..bcc8ea87281 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -58,7 +58,7 @@ void hostname_cache_refresh()
bool hostname_cache_init()
{
host_entry *tmp;
- uint offset= (uint) ((char*) (&tmp->ip) - (char*) &tmp);
+ uint offset= (uint) ((char*) (&tmp->ip) - (char*) tmp);
(void) pthread_mutex_init(&LOCK_hostname,MY_MUTEX_INIT_SLOW);
if (!(hostname_cache=new hash_filo(HOST_CACHE_SIZE, offset,