summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2020-11-23 20:18:29 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2020-11-23 20:18:29 +0100
commit540e2f78a6ccaba62322fc9aafc57c9fb27faa20 (patch)
tree2a1e9609fd8c0866ecec5fc8216ac53b5367a5d4 /tests
parent295f3e4cfb4a8f132f36d53475efc92f2487aa97 (diff)
downloadmariadb-git-540e2f78a6ccaba62322fc9aafc57c9fb27faa20.tar.gz
Fix GCC warning/error.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 644bc129a5f..0043786d477 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -21184,13 +21184,14 @@ static void test_cache_metadata()
{
char char_val[]= "blah";
int int_val = 1;
+ int rc;
MYSQL_BIND param= {0};
my_bool is_null= FALSE;
MYSQL_STMT* stmt= mysql_stmt_init(mysql);
check_stmt(stmt);
- int rc= mysql_stmt_prepare(stmt, "SELECT ?", -1);
+ rc= mysql_stmt_prepare(stmt, "SELECT ?", -1);
myquery(rc);
param.buffer= char_val;