diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index a88d1ec5ef1..41320aa5896 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -4015,7 +4015,8 @@ bool check_grant_all_columns(THD *thd, ulong want_access_arg, const char* db_name; GRANT_INFO *grant; - GRANT_TABLE *grant_table; + /* Initialized only to make gcc happy */ + GRANT_TABLE *grant_table= NULL; rw_rdlock(&LOCK_grant);