1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fix complilation failure

This commit is contained in:
unknown
2005-03-09 20:49:44 +01:00
parent d1b3c64b23
commit 1f22956271

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