diff options
author | pem@mysql.com <> | 2005-12-02 14:30:42 +0100 |
---|---|---|
committer | pem@mysql.com <> | 2005-12-02 14:30:42 +0100 |
commit | ed6e09a38c6871cf7592394050fd787816597cbc (patch) | |
tree | 57bedee6032b092061cd22fb4da9a6110861a873 /sql/sp_pcontext.cc | |
parent | c4c2dc079bf44fd1374ceb547a315bf37092b192 (diff) | |
download | mariadb-git-ed6e09a38c6871cf7592394050fd787816597cbc.tar.gz |
Post-review fixes for BUG#14376: MySQL crash on scoped variable (re)initialization
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r-- | sql/sp_pcontext.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc index cca3e03d69c..f5ad7e31b43 100644 --- a/sql/sp_pcontext.cc +++ b/sql/sp_pcontext.cc @@ -150,7 +150,7 @@ sp_pcontext::diff_cursors(sp_pcontext *ctx) sp_pvar_t * sp_pcontext::find_pvar(LEX_STRING *name, my_bool scoped) { - uint i= m_pboundary; + uint i= m_pvar.elements - m_pboundary; while (i--) { @@ -186,7 +186,6 @@ sp_pcontext::push_pvar(LEX_STRING *name, enum enum_field_types type, p->offset= current_pvars(); p->dflt= NULL; insert_dynamic(&m_pvar, (gptr)&p); - m_pboundary= m_pvar.elements; } } |