summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_partition.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index a44af968d9f..191859e0ed4 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -606,8 +606,8 @@ static bool create_full_part_field_array(THD *thd, TABLE *table,
partitioning.
*/
if ((ptr= part_info->full_part_field_array))
- while (*ptr)
- bitmap_set_bit(&part_info->full_part_field_set, (*ptr++)->field_index);
+ for (; *ptr; ptr++)
+ bitmap_set_bit(&part_info->full_part_field_set, (*ptr)->field_index);
end:
DBUG_RETURN(result);