[glib] gdbus(1): Don't fetch props if introspection data indicates none are available



commit a621e0ed10eb8a7c5b89ee1d96ae877908e4d74b
Author: David Zeuthen <davidz redhat com>
Date:   Mon May 17 11:08:53 2010 -0400

    gdbus(1): Don't fetch props if introspection data indicates none are available
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbus-tool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbus-tool.c b/gio/gdbus-tool.c
index ec4b36c..4826b35 100644
--- a/gio/gdbus-tool.c
+++ b/gio/gdbus-tool.c
@@ -1047,7 +1047,7 @@ dump_interface (GDBusConnection          *c,
                                       (GDestroyNotify) g_variant_unref);
 
   /* Try to get properties */
-  if (c != NULL && name != NULL && object_path != NULL)
+  if (c != NULL && name != NULL && object_path != NULL && o->properties != NULL)
     {
       GVariant *result;
       result = g_dbus_connection_call_sync (c,



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