0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 02:07:59 +08:00

Problem: encoder_base_t initialization reorder

Solution: initialize class variable in the same order as they are
defined.
This commit is contained in:
Luca Boccassi 2016-02-21 23:37:10 +00:00
parent de46fc6ac9
commit 779bed6315

View File

@ -57,11 +57,11 @@ namespace zmq
public:
inline encoder_base_t (size_t bufsize_) :
bufsize (bufsize_),
write_pos(0),
to_write(0),
next(nullptr),
new_msg_flag(false),
bufsize (bufsize_),
in_progress (NULL)
{
buf = (unsigned char*) malloc (bufsize_);