summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-05-27 14:33:08 +0300
committerGeorgi Kodinov <kgeorge@mysql.com>2008-05-27 14:33:08 +0300
commited78639805fbbf18c61716f7d4d9c5f4ce96d630 (patch)
treefe170ea7277cd95200a472cc8c1765a86c91e19b /tests
parent9198215ec12024690985618736e0428a0c07e9fd (diff)
downloadmariadb-git-ed78639805fbbf18c61716f7d4d9c5f4ce96d630.tar.gz
Bug #36887: Typo in mysql_client_test.c uses bind instead of my_bind
There was a typo in a error check causing wrong thing to be ckecked and a possible error not being caught. Fixed by using the correct variable to test for malloc() errors. tests/mysql_client_test.c: Bug #36887: fixed a typo
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index c3c6ebf7637..5e1c2afe84a 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -11675,7 +11675,7 @@ static void test_bug5194()
MAX_PARAM_COUNT * CHARS_PER_PARAM + 1);
param_str= (char*) malloc(COLUMN_COUNT * CHARS_PER_PARAM);
- if (bind == 0 || query == 0 || param_str == 0)
+ if (my_bind == 0 || query == 0 || param_str == 0)
{
fprintf(stderr, "Can't allocate enough memory for query structs\n");
if (my_bind)