Commit c35971a6 authored by Kapp Arnaud's avatar Kapp Arnaud

Fix initialization order.

Fixes #1431.
parent 5cbd197d
...@@ -47,8 +47,8 @@ namespace zmq ...@@ -47,8 +47,8 @@ namespace zmq
{ {
public: public:
c_single_allocator(size_t bufsize_): c_single_allocator(size_t bufsize_):
buf((unsigned char*) malloc (bufsize) ), bufsize(bufsize_),
bufsize(bufsize_) buf((unsigned char*) malloc (bufsize))
{ {
alloc_assert (buf); alloc_assert (buf);
} }
...@@ -74,8 +74,8 @@ namespace zmq ...@@ -74,8 +74,8 @@ namespace zmq
} }
private: private:
unsigned char* buf;
size_t bufsize; size_t bufsize;
unsigned char* buf;
c_single_allocator( c_single_allocator const& ); c_single_allocator( c_single_allocator const& );
c_single_allocator& operator=(c_single_allocator const&); c_single_allocator& operator=(c_single_allocator const&);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment