Commit 4b77d38c authored by Marko Mäkelä's avatar Marko Mäkelä

Fix GCC -Og -Wmaybe-uninitialized

parent 15a2ff12
...@@ -2639,11 +2639,11 @@ int spider_get_sys_link_mon_key( ...@@ -2639,11 +2639,11 @@ int spider_get_sys_link_mon_key(
DBUG_RETURN(ER_SPIDER_SYS_TABLE_VERSION_NUM); DBUG_RETURN(ER_SPIDER_SYS_TABLE_VERSION_NUM);
} }
if ( if (!(db_name = get_field(mem_root, table->field[0])))
!(db_name = get_field(mem_root, table->field[0])) || DBUG_RETURN(HA_ERR_OUT_OF_MEM);
!(table_name = get_field(mem_root, table->field[1])) || if (!(table_name = get_field(mem_root, table->field[1])))
!(link_id = get_field(mem_root, table->field[2])) DBUG_RETURN(HA_ERR_OUT_OF_MEM);
) if (!(link_id = get_field(mem_root, table->field[2])))
DBUG_RETURN(HA_ERR_OUT_OF_MEM); DBUG_RETURN(HA_ERR_OUT_OF_MEM);
db_name_length = strlen(db_name); db_name_length = strlen(db_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