Commit 060baf18 authored by unknown's avatar unknown
Browse files

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.
parent fb69c851
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),