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