From 8702ffccc3683d7b3d57bfdfbf6078fcfd02075b Mon Sep 17 00:00:00 2001 From: Michael M Date: Sun, 13 Aug 2017 18:45:54 -0700 Subject: [PATCH] UPnP: use value-initialization instead of std::memset --- Source/Core/Common/UPnP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/UPnP.cpp b/Source/Core/Common/UPnP.cpp index 2ca9fc9e54..47c4cf8337 100644 --- a/Source/Core/Common/UPnP.cpp +++ b/Source/Core/Common/UPnP.cpp @@ -39,8 +39,8 @@ static bool InitUPnP() if (s_error) return false; - std::memset(&s_urls, 0, sizeof(UPNPUrls)); - std::memset(&s_data, 0, sizeof(IGDdatas)); + s_urls = {}; + s_data = {}; // Find all UPnP devices int upnperror = 0;