summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2007-01-11 21:49:52 +0300
committerunknown <kostja@bodhi.local>2007-01-11 21:49:52 +0300
commitfcbe66a366008870c6eaee8a1ceda873b570f421 (patch)
treee03b598a5377d27bb788a9117908682f443cf80f /sql
parentc81140f5a18602844d2419c49b326cf0fddea5e7 (diff)
parente5c1d4784d791791d689219791242f7600726498 (diff)
downloadmariadb-git-fcbe66a366008870c6eaee8a1ceda873b570f421.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into bodhi.local:/opt/local/work/mysql-4.1-runtime sql/item_func.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/item_func.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 635c6b4c6d6..2456d7fb051 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2473,8 +2473,9 @@ bool Item_func_set_user_var::update_hash(void *ptr, uint length,
char *pos= (char*) entry+ ALIGN_SIZE(sizeof(user_var_entry));
if (entry->value == pos)
entry->value=0;
- if (!(entry->value=(char*) my_realloc(entry->value, length,
- MYF(MY_ALLOW_ZERO_PTR))))
+ entry->value= (char*) my_realloc(entry->value, length,
+ MYF(MY_ALLOW_ZERO_PTR | MY_WME));
+ if (!entry->value)
goto err;
}
}