diff --git a/src/lib/upnp/Init.cxx b/src/lib/upnp/Init.cxx index ac2167fb8..321ff7196 100644 --- a/src/lib/upnp/Init.cxx +++ b/src/lib/upnp/Init.cxx @@ -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));