From bc9c0ec1aefa3633045bf5051bd7cba20d201b9a Mon Sep 17 00:00:00 2001 From: Tushar Maheshwari Date: Sun, 27 Nov 2016 07:40:03 +0530 Subject: [PATCH] explicit initialization of `flags` --- src/uvw/tcp.hpp | 2 +- src/uvw/udp.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uvw/tcp.hpp b/src/uvw/tcp.hpp index f233d8ac..72cfc4ff 100644 --- a/src/uvw/tcp.hpp +++ b/src/uvw/tcp.hpp @@ -219,7 +219,7 @@ public: private: enum { DEFAULT, FLAGS } tag{DEFAULT}; - unsigned int flags; + unsigned int flags{}; }; diff --git a/src/uvw/udp.hpp b/src/uvw/udp.hpp index ba801b20..5777af8e 100644 --- a/src/uvw/udp.hpp +++ b/src/uvw/udp.hpp @@ -370,7 +370,7 @@ public: private: enum { DEFAULT, FLAGS } tag{DEFAULT}; - unsigned int flags; + unsigned int flags{}; };