diff --git a/sql/protocol.cc b/sql/protocol.cc index f7b3a496447..c1fc1ce8643 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -74,7 +74,6 @@ bool Protocol_binary::net_store_data(const uchar *from, size_t length) */ void net_send_error(THD *thd, uint sql_errno, const char *err) { - NET *net= &thd->net; DBUG_ENTER("net_send_error"); DBUG_ASSERT(!thd->spcont);