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

initialized. Move the check into for().
This commit is contained in:
calvin 2008-10-28 22:08:11 +00:00
parent b80665e409
commit 191409aaa7

View file

@ -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)) {