summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <wax@kishkin.ru>2005-01-05 17:14:29 +0500
committerunknown <wax@kishkin.ru>2005-01-05 17:14:29 +0500
commita2d253d676300559bdd582fddda6c3a41ff21eba (patch)
treecd8586fd383a4da70a84d9e3e55870d0a5f92c7d
parent1504f89ab7c2699d9170fb5a47453c39d3bb6365 (diff)
downloadmariadb-git-a2d253d676300559bdd582fddda6c3a41ff21eba.tar.gz
replace position names and testes
fixed bug
-rw-r--r--mysql-test/mysql_test_run_new.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/mysql_test_run_new.c b/mysql-test/mysql_test_run_new.c
index ecae0b6ad4d..bdebe912b97 100644
--- a/mysql-test/mysql_test_run_new.c
+++ b/mysql-test/mysql_test_run_new.c
@@ -1531,10 +1531,10 @@ int main(int argc, char **argv)
else
{
/* run all tests */
- names= malloc(MAX_COUNT_TESTES*sizeof(void*));
- if (!names)
+ testes= malloc(MAX_COUNT_TESTES*sizeof(void*));
+ if (!testes)
die("can not allcate memory for sorting");
- testes= names;
+ names= testes;
name_index= 0;
#ifndef __WIN__
struct dirent *entry;
@@ -1619,7 +1619,7 @@ int main(int argc, char **argv)
#endif
qsort( (void *)testes, name_index, sizeof( char * ), compare );
- for (index= 0; index <= name_index; index++)
+ for (index= 0; index < name_index; index++)
{
run_test(testes[index]);
free(testes[index]);