Commit 3d5da1ac authored by Max Kellermann's avatar Max Kellermann

lib/upnp/Init: use nullptr instead of 0

parent ec408ca6
...@@ -34,7 +34,7 @@ static unsigned upnp_ref; ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment