mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
GDBusAuth: Handle when no there is no auth observer present
I obviously fucked up when adding the ::allow-mechanism signal, sorry. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
b9d1fe7db2
commit
6a9341d851
@ -201,7 +201,7 @@ add_mechanism (GDBusAuth *auth,
|
|||||||
const gchar *name;
|
const gchar *name;
|
||||||
|
|
||||||
name = _g_dbus_auth_mechanism_get_name (mechanism_type);
|
name = _g_dbus_auth_mechanism_get_name (mechanism_type);
|
||||||
if (g_dbus_auth_observer_allow_mechanism (observer, name))
|
if (observer == NULL || g_dbus_auth_observer_allow_mechanism (observer, name))
|
||||||
{
|
{
|
||||||
Mechanism *m;
|
Mechanism *m;
|
||||||
m = g_new0 (Mechanism, 1);
|
m = g_new0 (Mechanism, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user