summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2004-09-14 09:46:05 +0200
committerunknown <joerg@mysql.com>2004-09-14 09:46:05 +0200
commit7226dc5155d1d3715be03bb6252b38c5ff8226eb (patch)
tree0a397ab08147c83c0760860168d00cb8f51c9f7b /tests
parentf21c7b17ed213f37935652dfa42971298894eb2d (diff)
downloadmariadb-git-7226dc5155d1d3715be03bb6252b38c5ff8226eb.tar.gz
Syntax correction for bug#5560.
tests/client_test.c: Pointer arithmetic on array names is not allowed in all compilers, rather use array elements and the address operator (bug#5560).
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);