diff --git a/server-tools/instance-manager/options.cc b/server-tools/instance-manager/options.cc index 334b67e5d37..36fe0a89dda 100644 --- a/server-tools/instance-manager/options.cc +++ b/server-tools/instance-manager/options.cc @@ -106,7 +106,7 @@ static struct my_option my_long_options[] = (gptr *) &Options::port_number, (gptr *) &Options::port_number, 0, GET_UINT, REQUIRED_ARG, DEFAULT_PORT, 0, 0, 0, 0, 0 }, - { "password-file", OPT_PASSWORD_FILE, "Look for Instane Manager users" + { "password-file", OPT_PASSWORD_FILE, "Look for Instance Manager users" " and passwords here.", (gptr *) &Options::password_file_name, (gptr *) &Options::password_file_name, diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 8d415419336..d19d511e74c 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -8056,7 +8056,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type, bool table_cant_handle_bit_fields, uint convert_blob_length) { - Item::Type orig_type; + Item::Type orig_type= type; Item *orig_item; if (type != Item::FIELD_ITEM && @@ -8066,7 +8066,6 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type, { orig_item= item; item= item->real_item(); - orig_type= type; type= Item::FIELD_ITEM; } switch (type) {