Kouhei Sutou
null+****@clear*****
Fri Nov 16 14:47:38 JST 2012
Kouhei Sutou 2012-11-16 14:47:38 +0900 (Fri, 16 Nov 2012) New Revision: 1db1f35ea03017362abf68a51f7ced745ab35609 https://github.com/mroonga/mroonga/commit/1db1f35ea03017362abf68a51f7ced745ab35609 Log: Add NULL check Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+10 -6) =================================================================== --- ha_mroonga.cpp 2012-11-16 11:07:02 +0900 (a56d2b3) +++ ha_mroonga.cpp 2012-11-16 14:47:38 +0900 (433cf8b) @@ -6074,13 +6074,17 @@ ha_rows ha_mroonga::storage_records_in_range(uint key_nr, key_range *range_min, } } - DBUG_PRINT("info", ("mroonga: range_min->flag=%u", range_min->flag)); - if (range_min && range_min->flag == HA_READ_AFTER_KEY) { - flags |= GRN_CURSOR_GT; + if (range_min) { + DBUG_PRINT("info", ("mroonga: range_min->flag=%u", range_min->flag)); + if (range_min->flag == HA_READ_AFTER_KEY) { + flags |= GRN_CURSOR_GT; + } } - DBUG_PRINT("info", ("mroonga: range_min->flag=%u", range_max->flag)); - if (range_max && range_max->flag == HA_READ_BEFORE_KEY) { - flags |= GRN_CURSOR_LT; + if (range_max) { + DBUG_PRINT("info", ("mroonga: range_min->flag=%u", range_max->flag)); + if (range_max->flag == HA_READ_BEFORE_KEY) { + flags |= GRN_CURSOR_LT; + } } uint pkey_nr = table->s->primary_key; -------------- next part -------------- HTML����������������������������... ダウンロード