summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 964f1698314..c8907dd02d2 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -161,7 +161,7 @@ longlong Item::val_time_packed_result(THD *thd)
*/
String *Item::val_str_ascii(String *str)
{
- DBUG_ASSERT(str != &str_value);
+ DBUG_ASSERT(str && str && str != &str_value);
uint errors;
String *res= val_str(&str_value);