bakaid commented on a change in pull request #713: MINIFICPP-1119 unify 
win/posix sockets + clean up issues
URL: https://github.com/apache/nifi-minifi-cpp/pull/713#discussion_r377145385
 
 

 ##########
 File path: libminifi/include/io/tls/TLSSocket.h
 ##########
 @@ -189,9 +186,10 @@ class TLSSocket : public Socket {
   }
 
   void close_ssl(int fd);
-  std::atomic<bool> connected_;
+
+  std::atomic<bool> connected_{};
 
 Review comment:
   I think this should be `connected_{false}`, as until C++20 no initialization 
takes place with the default atomic constructor: 
https://en.cppreference.com/w/cpp/atomic/atomic/atomic

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to