summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-07-05 12:51:16 -0700
committerunknown <jimw@mysql.com>2005-07-05 12:51:16 -0700
commit83d9aa144110ec65e537f148cd9d242d55523c46 (patch)
tree07a18f6a8157deb459302c8c40027f21bcda93ef /sql
parentd2119109848ec7129ce5372507f36a7f339cdb1a (diff)
parent9e78db81b04cbe271c01a384951ef2f3845027c3 (diff)
downloadmariadb-git-83d9aa144110ec65e537f148cd9d242d55523c46.tar.gz
Merge mysql.com:/home/jimw/my/mysql-4.1-11330
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_acl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 849192154da..d191da32189 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -1866,7 +1866,8 @@ GRANT_TABLE::GRANT_TABLE(TABLE *form, TABLE *col_privs)
if (cols)
{
int key_len;
- col_privs->field[0]->store(host.hostname,(uint) strlen(host.hostname),
+ col_privs->field[0]->store(host.hostname,
+ host.hostname ? (uint) strlen(host.hostname) : 0,
&my_charset_latin1);
col_privs->field[1]->store(db,(uint) strlen(db), &my_charset_latin1);
col_privs->field[2]->store(user,(uint) strlen(user), &my_charset_latin1);