Added missing initialization of values
A call to localtime_r was done with an uninitialized time_t value.
This commit is contained in:
@ -540,6 +540,7 @@ static bool file_write_header(
|
|||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
t = time(NULL);
|
||||||
localtime_r(&t, &tm);
|
localtime_r(&t, &tm);
|
||||||
|
|
||||||
header_buf1 = "\n\nMariaDB Corporation MaxScale " MAXSCALE_VERSION "\t";
|
header_buf1 = "\n\nMariaDB Corporation MaxScale " MAXSCALE_VERSION "\t";
|
||||||
|
Reference in New Issue
Block a user