Commit ff675a5b authored by Ray Strode's avatar Ray Strode

jsauthority: JSVAL_TO_OBJECT (o) to o.toObjectOrNull()

Signed-off-by: Ray Strode's avatarRay Strode <rstrode@redhat.com>

https://bugs.freedesktop.org/show_bug.cgi?id=105865
parent cdcc2ccb
......@@ -760,7 +760,7 @@ subject_to_jsval (PolkitBackendJsAuthority *authority,
goto out;
}
obj = JSVAL_TO_OBJECT (ret_jsval);
obj = ret_jsval.toObjectOrNull();
if (POLKIT_IS_UNIX_PROCESS (subject))
{
......@@ -885,7 +885,7 @@ action_and_details_to_jsval (PolkitBackendJsAuthority *authority,
goto out;
}
obj = JSVAL_TO_OBJECT (ret_jsval);
obj = ret_jsval.toObjectOrNull();
set_property_str (authority, obj, "id", action_id);
......
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