fixes/cleanups according to Coverity report

This commit is contained in:
unknown 2005-01-24 15:48:25 +01:00
commit 8bdb500105
29 changed files with 156 additions and 162 deletions

View file

@ -1825,7 +1825,7 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
{
ttid= (uint)table->field[1]->val_int();
if (ttid > TZ_MAX_TYPES)
if (ttid >= TZ_MAX_TYPES)
{
sql_print_error("Error while loading time zone description from "
"mysql.time_zone_transition_type table: too big "