summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <lars@mysql.com>2005-03-09 20:49:44 +0100
committerunknown <lars@mysql.com>2005-03-09 20:49:44 +0100
commit1f229562713c573a7d164a86191f0df8f2573353 (patch)
tree24f9231ab5389f5a34faa02da87642e289ef5584 /sql/sql_class.cc
parentd1b3c64b230e35dccf33ac7bb70bdd52f779536b (diff)
downloadmariadb-git-1f229562713c573a7d164a86191f0df8f2573353.tar.gz
Fix complilation failure
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index e8879e8c66f..5fb91d9c1a4 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -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;
}