[Groonga-mysql-commit] mroonga/mroonga at e4a6b7b [master] Add NULL check

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 9 14:47:28 JST 2018


Kouhei Sutou	2018-07-09 14:47:28 +0900 (Mon, 09 Jul 2018)

  New Revision: e4a6b7bfe4754ba50069f5aea66e1798b2992756
  https://github.com/mroonga/mroonga/commit/e4a6b7bfe4754ba50069f5aea66e1798b2992756

  Message:
    Add NULL check

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2018-07-09 14:42:06 +0900 (d7aca6be)
+++ ha_mroonga.cpp    2018-07-09 14:47:28 +0900 (bbe2604d)
@@ -4071,7 +4071,7 @@ bool ha_mroonga::storage_create_foreign_key(TABLE *table,
         char normalized_ref_db_name[NAME_LEN + 1];
         strmake(normalized_ref_db_name,
                 ref_db_name->str,
-                ref_db_name->length);
+                ref_db_name->str ? ref_db_name->length : 0);
         if (lower_case_table_names) {
           my_casedn_str(system_charset_info, normalized_ref_db_name);
           DBUG_PRINT("info", ("mroonga: casedn ref_db_name=%s",
@@ -4098,7 +4098,7 @@ bool ha_mroonga::storage_create_foreign_key(TABLE *table,
       char normalized_ref_table_name[NAME_LEN + 1];
       strmake(normalized_ref_table_name,
               ref_table_name->str,
-              ref_table_name->length);
+              ref_table_name->str ? ref_table_name->length : 0);
       if (lower_case_table_names) {
         my_casedn_str(system_charset_info, normalized_ref_table_name);
         DBUG_PRINT("info", ("mroonga: casedn ref_table_name=%s",
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180709/2c94666b/attachment.htm 



More information about the Groonga-mysql-commit mailing list
Back to archive index