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)
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;