UPnP: use value-initialization instead of std::memset
This commit is contained in:
parent
0e51082bbb
commit
8702ffccc3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue