summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorunknown <kent@kent-amd64.(none)>2006-12-31 01:04:59 +0100
committerunknown <kent@kent-amd64.(none)>2006-12-31 01:04:59 +0100
commit002d7efa478878565805810dda4bb37bd5dcd32e (patch)
treeb030e2a97457bcce43d57b586e30ec006bca32d5 /sql/sql_plugin.cc
parent3099886cda04701283645d1c59d04c7b2e66966c (diff)
parent0968cc9dec13ddc3352eeff73aa8ebb3eecb0213 (diff)
downloadmariadb-git-002d7efa478878565805810dda4bb37bd5dcd32e.tar.gz
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.1
into mysql.com:/home/kent/bk/main/mysql-5.1 sql/ha_ndbcluster_binlog.cc: Auto merged sql/sql_plugin.cc: Auto merged storage/ndb/include/kernel/signaldata/Extent.hpp: Auto merged storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp: Auto merged storage/ndb/src/kernel/blocks/diskpage.hpp: Auto merged storage/ndb/src/kernel/blocks/lgman.cpp: Auto merged storage/ndb/src/kernel/blocks/print_file.cpp: Auto merged storage/ndb/src/kernel/blocks/tsman.cpp: Auto merged storage/ndb/src/kernel/blocks/tsman.hpp: Auto merged storage/ndb/ndbapi-examples/mgmapi_logevent2/mgmapi_logevent2.cpp: Auto merged
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index ea3e88fefa7..1d711b7835c 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -982,7 +982,7 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
{
rw_rdlock(&THR_LOCK_plugin);
for (uint i=idx; i < total; i++)
- if (plugins[i]->state & state_mask)
+ if (plugins[i] && plugins[i]->state & state_mask)
plugins[i]=0;
rw_unlock(&THR_LOCK_plugin);
}