summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorserg@sergbook.mysql.com <>2004-12-31 11:52:14 +0100
committerserg@sergbook.mysql.com <>2004-12-31 11:52:14 +0100
commit45ce994e5dc31c6eb802c3b8eb8955c320a4c111 (patch)
treee4e588771f15003e0c2b5df5cbc1cafeb3530324 /sql/sql_acl.cc
parentc7e756f95999428a9d8e7e01ef38e96a5736500b (diff)
downloadmariadb-git-45ce994e5dc31c6eb802c3b8eb8955c320a4c111.tar.gz
post-merge
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 5579aa9b3f5..2c11d1c87ad 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -964,9 +964,8 @@ static void acl_insert_db(const char *user, const char *host, const char *db,
ulong acl_get(const char *host, const char *ip,
const char *user, const char *db, my_bool db_is_pattern)
{
- ulong host_access,db_access;
+ ulong host_access= ~0,db_access= 0;
uint i,key_length;
- db_access=0; host_access= ~0;
char key[ACL_KEY_LENGTH],*tmp_db,*end;
acl_entry *entry;
DBUG_ENTER("acl_get");