mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-17 16:20:25 +02:00
UPnP: use value-initialization instead of std::memset
This commit is contained in:
1 parent
0e51082bbb
commit
8702ffccc3
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user