summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-06-05 23:19:55 +0300
committerunknown <monty@narttu.mysql.fi>2003-06-05 23:19:55 +0300
commitcc66b447ec81a99a55f5f8a62b4b9b14c6fc3bcd (patch)
tree465cedf957cf72472b550c4f0bc5a012f67545c7
parent64d11bb395348ec002760d5354fbec0e373db593 (diff)
parentd9a6a9aca610e715d0b0698c1447f6550e6f7965 (diff)
downloadmariadb-git-cc66b447ec81a99a55f5f8a62b4b9b14c6fc3bcd.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into narttu.mysql.fi:/my/mysql-4.1
-rw-r--r--sql/sql_help.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index 9003d4b36cd..ba7c08ff15f 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -553,14 +553,14 @@ int send_variant_2_list(MEM_ROOT *mem_root, Protocol *protocol,
String **pointers= (String**)alloc_root(mem_root,
sizeof(String*)*names->elements);
- String **pos= pointers;
+ String **pos;
+ String **end= pointers + names->elements;
List_iterator<String> it(*names);
- while ((*pos++= it++));
+ for ( pos= pointers; pos!=end; (*pos++= it++));
qsort(pointers,names->elements,sizeof(String*),string_ptr_cmp);
- String **end= pointers + names->elements;
for (pos= pointers; pos!=end; pos++)
{
protocol->prepare_for_resend();