UPnP: use value-initialization instead of std::memset

This commit is contained in:
Michael M 2017-08-13 18:45:54 -07:00
parent 0e51082bbb
commit 8702ffccc3
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ static bool InitUPnP()
if (s_error) if (s_error)
return false; return false;
std::memset(&s_urls, 0, sizeof(UPNPUrls)); s_urls = {};
std::memset(&s_data, 0, sizeof(IGDdatas)); s_data = {};
// Find all UPnP devices // Find all UPnP devices
int upnperror = 0; int upnperror = 0;