summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index 869167bba2f..521e0f7765f 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -278,7 +278,7 @@ void Log_event::print_timestamp(FILE* file, time_t* ts)
ts = &when;
}
#ifdef MYSQL_SERVER
- res=localtime_r(ts,&tm_tmp);
+ localtime_r(ts,(res= &tm_tmp));
#else
res=localtime(ts);
#endif