summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2022-03-19 14:48:51 +0200
committerVicențiu Ciorbaru <cvicentiu@gmail.com>2022-03-19 14:48:51 +0200
commit886ae77159ad191a8679ea37ec47ba652ea88498 (patch)
treec4df70153764ed822827cae53c5cbebdf16551a9
parenteec65b832d9a37940c67da6ba2b09f5cf43c7782 (diff)
downloadmariadb-git-886ae77159ad191a8679ea37ec47ba652ea88498.tar.gz
Fix centos-7?
-rw-r--r--sql/sql_acl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index f60a1958347..04bbf442db3 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -151,13 +151,14 @@ public:
Priv_spec(privilege_t access, bool revoke, bool deny=false):
revoke{revoke}, deny{deny}, access{access}, spec_type{PRIV_TYPE::GLOBAL_PRIV},
- db{nullptr, 0}, table{nullptr, 0}, column{nullptr, 0}, routine{nullptr, 0}
+ db({nullptr, 0}), table({nullptr, 0}), column({nullptr, 0}),
+ routine({nullptr, 0})
{ }
Priv_spec(privilege_t access, bool revoke, const LEX_CSTRING &db, bool deny=false):
revoke{revoke}, deny{deny}, access{access},
spec_type{PRIV_TYPE::DATABASE_PRIV}, db{db},
- table{nullptr, 0}, column{nullptr, 0}, routine{nullptr, 0}
+ table({nullptr, 0}), column({nullptr, 0}), routine({nullptr, 0})
{ /* TODO(cvicentiu) hack */
if (!db.str)
spec_type= PRIV_TYPE::GLOBAL_PRIV;