Navigation Menu

Skip to content

Commit

Permalink
add NULL check on get_error_message().
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 28, 2011
1 parent d9a70db commit c8be867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -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 {
Expand Down

0 comments on commit c8be867

Please sign in to comment.