lib/upnp/Init: use nullptr instead of 0
This commit is contained in:
@@ -34,7 +34,7 @@ static unsigned upnp_ref;
|
||||
static void
|
||||
DoInit()
|
||||
{
|
||||
auto code = UpnpInit(0, 0);
|
||||
auto code = UpnpInit(nullptr, 0);
|
||||
if (code != UPNP_E_SUCCESS)
|
||||
throw FormatRuntimeError("UpnpInit() failed: %s",
|
||||
UpnpGetErrorMessage(code));
|
||||
|
Reference in New Issue
Block a user