diff options
author | monty@work.mysql.com <> | 2001-09-04 01:04:32 +0200 |
---|---|---|
committer | monty@work.mysql.com <> | 2001-09-04 01:04:32 +0200 |
commit | 81006dd2274404bd5f9904f04a91b471949ec197 (patch) | |
tree | aaf42ebc12881df70581f25e72e0a95304a405ae /sql/log_event.cc | |
parent | 279de0c67c3c07d2dafb94763966842d8160c242 (diff) | |
parent | 55dd01cc1354cd04acfec421dc9e9d9e971d489f (diff) | |
download | mariadb-git-81006dd2274404bd5f9904f04a91b471949ec197.tar.gz |
Merge work.mysql.com:/home/bk/mysql
into work.mysql.com:/home/bk/mysql-4.0
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 64ad4cadf8e..ce0873f0be6 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -548,24 +548,24 @@ void Log_event::print_header(FILE* file) void Log_event::print_timestamp(FILE* file, time_t* ts) { - struct tm tm_tmp; + struct tm tm_tmp, *res; if (!ts) { ts = &when; } #ifdef MYSQL_SERVER - localtime_r(ts,&tm_tmp); + res=localtime_r(ts,&tm_tmp); #else - localtime(ts); + res=localtime(ts); #endif fprintf(file,"%02d%02d%02d %2d:%02d:%02d", - tm_tmp.tm_year % 100, - tm_tmp.tm_mon+1, - tm_tmp.tm_mday, - tm_tmp.tm_hour, - tm_tmp.tm_min, - tm_tmp.tm_sec); + res->tm_year % 100, + res->tm_mon+1, + res->tm_mday, + res->tm_hour, + res->tm_min, + res->tm_sec); } |