summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-10-23 15:22:21 +0400
committerAlexander Nozdrin <alik@sun.com>2009-10-23 15:22:21 +0400
commit069d78c06714233dcdc6011fa3262a54df6a1ed4 (patch)
tree9a94748e3f29d58645ae7979faaf09464080033d /sql-common
parent40c0ae812965d86406f8e44fc0c4af0914858d46 (diff)
parent2f5413ebc5a47ed45abe0d3c660cfbf673c666e2 (diff)
downloadmariadb-git-069d78c06714233dcdc6011fa3262a54df6a1ed4.tar.gz
Merge from mysql-next-mr.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/my_time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index 2ec1fc253a7..95078a50097 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -165,7 +165,7 @@ str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
uint add_hours= 0, start_loop;
ulong not_zero_date, allow_space;
my_bool is_internal_format;
- const char *pos, *last_field_pos;
+ const char *pos, *UNINIT_VAR(last_field_pos);
const char *end=str+length;
const uchar *format_position;
my_bool found_delimitier= 0, found_space= 0;
@@ -174,7 +174,6 @@ str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
DBUG_PRINT("ENTER",("str: %.*s",length,str));
LINT_INIT(field_length);
- LINT_INIT(last_field_pos);
*was_cut= 0;