1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix complilation failure

This commit is contained in:
lars@mysql.com
2005-03-09 20:49:44 +01:00
parent 79573a5ee8
commit 1422a2b1b1

View File

@@ -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;
}