mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-10-25 10:09:38 +02:00 
			
		
		
		
	Problem: stream_engine_t initialization reorder
Solution: initialize class variable in the same order as they are defined.
This commit is contained in:
		| @@ -61,6 +61,8 @@ | |||||||
| zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, | zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, | ||||||
|                                        const std::string &endpoint_) : |                                        const std::string &endpoint_) : | ||||||
|     s (fd_), |     s (fd_), | ||||||
|  |     as_server(false), | ||||||
|  |     handle(NULL), | ||||||
|     inpos (NULL), |     inpos (NULL), | ||||||
|     insize (0), |     insize (0), | ||||||
|     decoder (NULL), |     decoder (NULL), | ||||||
| @@ -87,8 +89,6 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, | |||||||
|     has_timeout_timer (false), |     has_timeout_timer (false), | ||||||
|     has_heartbeat_timer (false), |     has_heartbeat_timer (false), | ||||||
|     heartbeat_timeout (0), |     heartbeat_timeout (0), | ||||||
|     as_server(false), |  | ||||||
|     handle(NULL), |  | ||||||
|     socket (NULL) |     socket (NULL) | ||||||
| { | { | ||||||
|     int rc = tx_msg.init (); |     int rc = tx_msg.init (); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Luca Boccassi
					Luca Boccassi