Commit 1422a2b1 authored by lars@mysql.com's avatar lars@mysql.com

Fix complilation failure

parent 79573a5e
......@@ -1782,7 +1782,7 @@ void TMP_TABLE_PARAM::init()
void thd_increment_bytes_sent(ulong length)
{
THD *thd=current_thd;
if (likely(thd))
if (likely(thd != 0))
{ /* current_thd==0 when close_connection() calls net_send_error() */
thd->status_var.bytes_sent+= length;
}
......
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