summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2004-01-08 10:37:31 +0100
committerunknown <pem@mysql.comhem.se>2004-01-08 10:37:31 +0100
commit027535733de4e0daef066d1c0a2aff489239d94f (patch)
tree4a62d68e525b14b671e42850a7847bb40a412c5b /sql/sp_rcontext.h
parent952e2cd42af99102c74d16abc61b37e2c42055b0 (diff)
downloadmariadb-git-027535733de4e0daef066d1c0a2aff489239d94f.tar.gz
Fix BUG#2259: Crash after fetch from not-open cursor in stored procedure
Initialize and test properly when cleaning up, to avoid crash in some error cases. mysql-test/r/sp-error.result: Test case for BUG#2259 mysql-test/t/sp-error.test: Test case for BUG#2259 sql/sp_rcontext.cc: Cleanup in a more controlled way to avoid crashes in some error cases. Remove unused variable. sql/sp_rcontext.h: Initialize member var, for cleanup tests.
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r--sql/sp_rcontext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_rcontext.h b/sql/sp_rcontext.h
index 5d836998cb1..7a9271ed06a 100644
--- a/sql/sp_rcontext.h
+++ b/sql/sp_rcontext.h
@@ -205,7 +205,7 @@ class sp_cursor : public Sql_alloc
public:
sp_cursor(LEX *lex)
- : m_lex(lex), m_isopen(0), m_current_row(NULL)
+ : m_lex(lex), m_prot(NULL), m_isopen(0), m_current_row(NULL)
{
/* Empty */
}