summaryrefslogtreecommitdiff
path: root/sql/item_buff.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-06-21 06:26:02 -0700
committerunknown <igor@rurik.mysql.com>2005-06-21 06:26:02 -0700
commit109161c3facdb5a439c7a5adead84a595ce6ef3e (patch)
tree3a37ba1e3973c3635d6222087189524cc24f826d /sql/item_buff.cc
parentbf6a86afcafc559aed642d10da692c94584d258b (diff)
parent472a2b511c202ee5733aafc63a1083169d769862 (diff)
downloadmariadb-git-109161c3facdb5a439c7a5adead84a595ce6ef3e.tar.gz
Manual merge
sql/item_buff.cc: Auto merged
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r--sql/item_buff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc
index 7e7bbe51657..6652aaafb57 100644
--- a/sql/item_buff.cc
+++ b/sql/item_buff.cc
@@ -60,8 +60,8 @@ bool Cached_item_str::cmp(void)
String *res;
bool tmp;
- res=item->val_str(&tmp_value);
- res->length(min(res->length(), value.alloced_length()));
+ if ((res=item->val_str(&tmp_value)))
+ res->length(min(res->length(), value.alloced_length()));
if (null_value != item->null_value)
{
if ((null_value= item->null_value))