Skip to content

Commit 4b77d38

Browse files
committed
Fix GCC -Og -Wmaybe-uninitialized
1 parent 15a2ff1 commit 4b77d38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

storage/spider/spd_sys_table.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,11 +2639,11 @@ int spider_get_sys_link_mon_key(
26392639
DBUG_RETURN(ER_SPIDER_SYS_TABLE_VERSION_NUM);
26402640
}
26412641

2642-
if (
2643-
!(db_name = get_field(mem_root, table->field[0])) ||
2644-
!(table_name = get_field(mem_root, table->field[1])) ||
2645-
!(link_id = get_field(mem_root, table->field[2]))
2646-
)
2642+
if (!(db_name = get_field(mem_root, table->field[0])))
2643+
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
2644+
if (!(table_name = get_field(mem_root, table->field[1])))
2645+
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
2646+
if (!(link_id = get_field(mem_root, table->field[2])))
26472647
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
26482648

26492649
db_name_length = strlen(db_name);

0 commit comments

Comments
 (0)