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:
parent
de46fc6ac9
commit
779bed6315
@ -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_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user