From 64f96de766c5a0a896343a27bd2c5772fd334eb4 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 14 Feb 2014 15:16:23 +0100 Subject: fix SphinxSE to not leave Sphinx_error status variable uninitialized --- storage/sphinx/ha_sphinx.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'storage') 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; } -- cgit v1.2.1