[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] add NULL check on get_error_message().

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:30:10 JST 2012


Kouhei Sutou	2011-09-28 15:55:18 +0900 (Wed, 28 Sep 2011)

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

  Log:
    add NULL check on get_error_message().

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-09-28 15:54:27 +0900 (df5774f)
+++ ha_mroonga.cc    2011-09-28 15:55:18 +0900 (6271213)
@@ -5185,7 +5185,7 @@ bool ha_mroonga::get_error_message(int error, String *buf)
   MRN_DBUG_ENTER_METHOD();
   // XXX: success is valid variable name?
   bool success;
-  if (share->wrapper_mode)
+  if (share && share->wrapper_mode)
   {
     success = wrapper_get_error_message(error, buf);
   } else {
-------------- next part --------------
HTML����������������������������...
Download 



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