diff options
| author | Michael M <mchtly@gmail.com> | 2017-08-13 18:45:54 -0700 |
|---|---|---|
| committer | Michael M <mchtly@gmail.com> | 2017-08-13 18:50:53 -0700 |
| commit | 8702ffccc3683d7b3d57bfdfbf6078fcfd02075b (patch) | |
| tree | f5241a99b81de2e624bd57ef692c1fa6ea9c8766 /Source/Core | |
| parent | 0e51082bbba2d1d1722b496580e50acb7e3040b3 (diff) | |
UPnP: use value-initialization instead of std::memset
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/UPnP.cpp | 4 |
1 files 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; |
