diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-05-12 15:10:17 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-05-15 22:23:10 +0200 |
commit | 71b45032421fe47fceabe419c63e79c44794428d (patch) | |
tree | c771e726ce4140b0798e7588034704801509e1ff /sql/sql_audit.cc | |
parent | f9264280d68dcbca2f9312c7d8620b2bcc9d0694 (diff) | |
download | mariadb-git-71b45032421fe47fceabe419c63e79c44794428d.tar.gz |
MDEV-9998 Fix issues caught by Clang's -Wpointer-bool-conversion warning
remove useless checks
and a couple of others
Diffstat (limited to 'sql/sql_audit.cc')
-rw-r--r-- | sql/sql_audit.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_audit.cc b/sql/sql_audit.cc index b659054a50b..60a75cb06e7 100644 --- a/sql/sql_audit.cc +++ b/sql/sql_audit.cc @@ -369,8 +369,7 @@ int initialize_audit_plugin(st_plugin_int *plugin) { st_mysql_audit *data= (st_mysql_audit*) plugin->plugin->info; - if (!data->class_mask || !data->event_notify || - !data->class_mask[0]) + if (!data->event_notify || !data->class_mask[0]) { sql_print_error("Plugin '%s' has invalid data.", plugin->name.str); |