lib/upnp/Init: use nullptr instead of 0

This commit is contained in:
Max Kellermann 2018-01-31 18:14:26 +01:00
parent ec408ca6a6
commit 3d5da1ac73
1 changed files with 1 additions and 1 deletions

View File

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