Skip to content

Commit ddd3a61

Browse files
committed
ctype-ascii.h:110:27: runtime error: applying non-zero offset 4 to null pointer
when this->get_name() is {0,0}
1 parent 0af2454 commit ddd3a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/opt_hints.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,8 +1525,8 @@ bool Opt_hints_qb::compare_table_name(
15251525
considered to be equal to `Opt_hints_qb::get_name()`
15261526
*/
15271527
const LEX_CSTRING &hint_tab_qb_name=
1528-
hint_table_and_qb->qb_name.length > 0 ? hint_table_and_qb->qb_name :
1529-
this->get_name();
1528+
hint_table_and_qb->qb_name.length > 0 || this->get_name().length == 0
1529+
? hint_table_and_qb->qb_name : this->get_name();
15301530

15311531
CHARSET_INFO *cs= charset_info();
15321532
// Compare QB names

0 commit comments

Comments
 (0)