From 060baf18217ca5823ae747d72d676e7e46c425ce Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Dec 2004 20:18:17 +0400 Subject: [PATCH] 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. --- client/mysqltest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),