From c35971a6031db8997f34d27e2ce97cbc17c8f7e1 Mon Sep 17 00:00:00 2001 From: Kapp Arnaud Date: Sun, 7 Jun 2015 02:21:32 +0200 Subject: [PATCH] Fix initialization order. Fixes #1431. --- src/decoder.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decoder.hpp b/src/decoder.hpp index 5458992b..b6dc9e90 100644 --- a/src/decoder.hpp +++ b/src/decoder.hpp @@ -47,8 +47,8 @@ namespace zmq { public: c_single_allocator(size_t bufsize_): - buf((unsigned char*) malloc (bufsize) ), - bufsize(bufsize_) + bufsize(bufsize_), + buf((unsigned char*) malloc (bufsize)) { alloc_assert (buf); } @@ -74,8 +74,8 @@ namespace zmq } private: - unsigned char* buf; size_t bufsize; + unsigned char* buf; c_single_allocator( c_single_allocator const& ); c_single_allocator& operator=(c_single_allocator const&);