diff options
author | pem@mysql.comhem.se <> | 2004-01-08 10:37:31 +0100 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2004-01-08 10:37:31 +0100 |
commit | cfd97c022e1f13d38780c4e4257f7644a08f3c69 (patch) | |
tree | 4a62d68e525b14b671e42850a7847bb40a412c5b /sql/sp_rcontext.h | |
parent | 4975595660ce132a7b81a2fa39fc83c81a25fcea (diff) | |
download | mariadb-git-cfd97c022e1f13d38780c4e4257f7644a08f3c69.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.
Diffstat (limited to 'sql/sp_rcontext.h')
-rw-r--r-- | sql/sp_rcontext.h | 2 |
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 */ } |