summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <kroki/tomash@moonlight.home>2007-01-09 12:47:03 +0300
committerunknown <kroki/tomash@moonlight.home>2007-01-09 12:47:03 +0300
commite5c1d4784d791791d689219791242f7600726498 (patch)
tree7af7402998f92fedc77d2e6528638bb3d7e247d4 /sql
parent7c9c5409a37abae232000d6dd393a6e958ad64a6 (diff)
parentbeac4a6f8a1326f30a2bc96a5eb3aa9d437de614 (diff)
downloadmariadb-git-e5c1d4784d791791d689219791242f7600726498.tar.gz
Merge moonlight.home:/home/tomash/src/mysql_ab/mysql-4.1-runtime
into moonlight.home:/home/tomash/src/mysql_ab/mysql-4.1-bug23443
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 1af49179aee..d4b7af68c3b 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2468,8 +2468,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;
}
}