Commit 207f0082 authored by Sergey Petrunya's avatar Sergey Petrunya

Fix valgrind failure caused by calling c_ptr() of an empty StringBuffer<N>.

parent c0a741f0
...@@ -903,7 +903,7 @@ int Explain_update::print_explain(Explain_query *query, ...@@ -903,7 +903,7 @@ int Explain_update::print_explain(Explain_query *query,
key_len_buf.length() ? key_len_buf.c_ptr() : NULL, key_len_buf.length() ? key_len_buf.c_ptr() : NULL,
NULL, /* 'ref' is always NULL in single-table EXPLAIN DELETE */ NULL, /* 'ref' is always NULL in single-table EXPLAIN DELETE */
&rows, &rows,
extra_str.c_ptr()); extra_str.c_ptr_safe());
return print_explain_for_children(query, output, explain_flags); return print_explain_for_children(query, output, explain_flags);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment