diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-12-20 20:18:17 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-12-20 20:18:17 +0400 |
commit | 060baf18217ca5823ae747d72d676e7e46c425ce (patch) | |
tree | c1749ef28180aeec40814d304cdfd56aaeb2485d /client | |
parent | fb69c85183fa51a3a7ed95297c2b9f8a98ba6b48 (diff) | |
download | mariadb-git-060baf18217ca5823ae747d72d676e7e46c425ce.tar.gz |
A fix (bug #7283: Test failure: 'update' (using '--ps-protocol': server crash)).
client/mysqltest.c:
A fix (bug #7283: Test failure: 'update' (using '--ps-protocol': server crash)).
Unused bind slots should be zeroed.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index bd4de026acb..8ddcfb90cad 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -2896,7 +2896,7 @@ static int run_query_stmt(MYSQL *mysql, struct st_query *q, int flags) /* Allocate array with bind structs, lengths and NULL flags */ bind= (MYSQL_BIND*) my_malloc(num_fields * sizeof(MYSQL_BIND), - MYF(MY_WME | MY_FAE)); + MYF(MY_WME | MY_FAE | MY_ZEROFILL)); length= (unsigned long*) my_malloc(num_fields * sizeof(unsigned long), MYF(MY_WME | MY_FAE)); is_null= (my_bool*) my_malloc(num_fields * sizeof(my_bool), |