Commit 9f9f7d54 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dbus_screensaver: fix NULL deref if probing fails (fixes #7871)

parent 283d246c
......@@ -186,6 +186,7 @@ static int Open (vlc_object_t *obj)
sys->pending = NULL;
sys->cookie = 0;
ih->p_sys = sys;
for (unsigned i = 0; i < MAX_API; i++)
{
......@@ -193,7 +194,6 @@ static int Open (vlc_object_t *obj)
{
msg_Dbg(ih, "found service %s", dbus_service[i]);
sys->api = i;
ih->p_sys = sys;
ih->inhibit = Inhibit;
return VLC_SUCCESS;
}
......
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