Commit 03174cab authored by Marko Mäkelä's avatar Marko Mäkelä

Fix GCC -Og -Wmaybe-uninitialized

parent 35f2cdcb
...@@ -2982,14 +2982,17 @@ int spider_get_sys_link_mon_key( ...@@ -2982,14 +2982,17 @@ 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=
!(db_name = get_field(mem_root, get_field(mem_root,
table->field[SPIDER_LINK_MON_SERVERS_DB_NAME_POS])) || table->field[SPIDER_LINK_MON_SERVERS_DB_NAME_POS])))
!(table_name = get_field(mem_root, DBUG_RETURN(HA_ERR_OUT_OF_MEM);
table->field[SPIDER_LINK_MON_SERVERS_TABLE_NAME_POS])) || if (!(table_name=
!(link_id = get_field(mem_root, get_field(mem_root,
table->field[SPIDER_LINK_MON_SERVERS_LINK_ID_POS])) table->field[SPIDER_LINK_MON_SERVERS_TABLE_NAME_POS])))
) DBUG_RETURN(HA_ERR_OUT_OF_MEM);
if (!(link_id=
get_field(mem_root,
table->field[SPIDER_LINK_MON_SERVERS_LINK_ID_POS])))
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