Fix for valgrind errors in str_to_TIME(using of uninitialize variable).

parent 9863b6ae
...@@ -557,7 +557,10 @@ str_to_TIME(const char *str, uint length, TIME *l_time, uint flags) ...@@ -557,7 +557,10 @@ str_to_TIME(const char *str, uint length, TIME *l_time, uint flags)
number_of_fields= i - start_loop; number_of_fields= i - start_loop;
while (i < MAX_DATE_PARTS) while (i < MAX_DATE_PARTS)
date[i++]=0; {
date_len[i]= 0;
date[i++]= 0;
}
if (!is_internal_format) if (!is_internal_format)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment