Put structure check fields behind SS_DEBUG macros. Thus, they are only included in debug builds.

This commit is contained in:
vraatikka
2013-09-09 10:05:46 +03:00
parent 27338c2537
commit e1d7a5640d
6 changed files with 18 additions and 3 deletions

View File

@ -62,8 +62,10 @@ MySQLProtocol* mysql_protocol_init(
goto return_p;
}
p->state = MYSQL_ALLOC;
#if defined(SS_DEBUG)
p->protocol_chk_top = CHK_NUM_PROTOCOL;
p->protocol_chk_tail = CHK_NUM_PROTOCOL;
#endif
p->fd = dcb->fd;
p->owner_dcb = dcb;
dcb->protocol = p;