Commit 191409aa authored by calvin's avatar calvin

branches/zip: fix a problem introduced in r2917 - dyn is not

initialized. Move the check into for().
parent b80665e4
......@@ -9695,13 +9695,14 @@ innodb_plugin_init(void)
for (sta = builtin->system_vars; *sta != NULL; sta++) {
/* do not copy session variables */
if (((*sta)->flags | (*dyn)->flags) & PLUGIN_VAR_THDLOCAL) {
continue;
}
for (dyn = innobase_system_variables; *dyn != NULL; dyn++) {
/* do not copy session variables */
if (((*sta)->flags | (*dyn)->flags)
& PLUGIN_VAR_THDLOCAL) {
continue;
}
if (innobase_match_parameter((*sta)->name,
(*dyn)->name)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment