[glib] GDBusAuth: Handle when no there is no auth observer present



commit 6a9341d851030eac3cd20eb5b91a02d1db3c7006
Author: David Zeuthen <davidz redhat com>
Date:   Sat Apr 14 12:40:57 2012 -0400

    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>

 gio/gdbusauth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbusauth.c b/gio/gdbusauth.c
index 8d4723c..75e74ad 100644
--- a/gio/gdbusauth.c
+++ b/gio/gdbusauth.c
@@ -201,7 +201,7 @@ add_mechanism (GDBusAuth         *auth,
   const gchar *name;
 
   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;
       m = g_new0 (Mechanism, 1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]