diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-10-15 19:24:43 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-10-15 19:24:43 +0400 |
commit | 207f0082202fd822fe1d0d3083c7fff5de6d8847 (patch) | |
tree | 26f13fd85bea8c93d31a81051204456870815888 /sql/sql_explain.cc | |
parent | c0a741f0053d23cc475fd479c39a0f46ece7c126 (diff) | |
download | mariadb-git-207f0082202fd822fe1d0d3083c7fff5de6d8847.tar.gz |
Fix valgrind failure caused by calling c_ptr() of an empty StringBuffer<N>.
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r-- | sql/sql_explain.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc index b9f75d3a97e..d20e2b2e4ef 100644 --- a/sql/sql_explain.cc +++ b/sql/sql_explain.cc @@ -903,7 +903,7 @@ int Explain_update::print_explain(Explain_query *query, key_len_buf.length() ? key_len_buf.c_ptr() : NULL, NULL, /* 'ref' is always NULL in single-table EXPLAIN DELETE */ &rows, - extra_str.c_ptr()); + extra_str.c_ptr_safe()); return print_explain_for_children(query, output, explain_flags); } |