diff options
author | unknown <kostja@bodhi.local> | 2007-01-12 18:06:43 +0300 |
---|---|---|
committer | unknown <kostja@bodhi.local> | 2007-01-12 18:06:43 +0300 |
commit | 5f9a8075626db75e770d679eae4ae0dd52e1400e (patch) | |
tree | d480a21e747de2914f974a9a4dcbc7945c3f30ba /sql | |
parent | 611299bb29a947c6dbb9d5cc614304cb012e6307 (diff) | |
parent | fcbe66a366008870c6eaee8a1ceda873b570f421 (diff) | |
download | mariadb-git-5f9a8075626db75e770d679eae4ae0dd52e1400e.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into bodhi.local:/opt/local/work/mysql-4.1-runtime
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_func.cc | 5 |
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; } } |