summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index 8a98c5b6584..1cc0bd9f0ba 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -10123,9 +10123,9 @@ static void test_bug4231()
bzero(tm, sizeof(tm));
bind[0].buffer_type= MYSQL_TYPE_TIME;
- bind[0].buffer= (void*) tm;
+ bind[0].buffer= &tm[0];
bind[1].buffer_type= MYSQL_TYPE_TIME;
- bind[1].buffer= (void*) tm+1;
+ bind[1].buffer= &tm[1];
mysql_stmt_bind_param(stmt, bind);
check_execute(stmt, rc);