From 8bdb500105f97e3007e652f73d99c373d38f2aad Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 24 Jan 2005 15:48:25 +0100 Subject: fixes/cleanups according to Coverity report --- sql/tztime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/tztime.cc') diff --git a/sql/tztime.cc b/sql/tztime.cc index c2143b0d5dd..597389220f7 100644 --- a/sql/tztime.cc +++ b/sql/tztime.cc @@ -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 " -- cgit v1.2.1