summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-02-14 15:16:23 +0100
committerSergei Golubchik <sergii@pisem.net>2014-02-14 15:16:23 +0100
commit64f96de766c5a0a896343a27bd2c5772fd334eb4 (patch)
treedf35c781bc0208293ff4018e102aa7b9237520b8 /storage
parentfb27ce22f77705d394beb6acd7aa4be2ff008890 (diff)
downloadmariadb-git-64f96de766c5a0a896343a27bd2c5772fd334eb4.tar.gz
fix SphinxSE to not leave Sphinx_error status variable uninitialized
Diffstat (limited to 'storage')
-rw-r--r--storage/sphinx/ha_sphinx.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/sphinx/ha_sphinx.cc b/storage/sphinx/ha_sphinx.cc
index 93cb43f3a92..822f6956d11 100644
--- a/storage/sphinx/ha_sphinx.cc
+++ b/storage/sphinx/ha_sphinx.cc
@@ -3575,11 +3575,13 @@ int sphinx_showfunc_words ( THD * thd, SHOW_VAR * out, char * sBuffer )
int sphinx_showfunc_error ( THD * thd, SHOW_VAR * out, char * )
{
CSphSEStats * pStats = sphinx_get_stats ( thd, out );
+ out->type = SHOW_CHAR;
if ( pStats && pStats->m_bLastError )
{
- out->type = SHOW_CHAR;
out->value = pStats->m_sLastMessage;
}
+ else
+ out->value = (char*)"";
return 0;
}