components/desktop/dbus-glib/patches/dbus-glib-01-avoid-crash.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Fri, 29 Apr 2016 14:55:13 -0700
changeset 5888 09b82e3ff500
permissions -rw-r--r--
23169096 Move D-Bus packages to Userland 15714235 system/library/libdbus is missing all its dependencies 21020807 Add "RO" to res1 field of auth_attr.d files in DBus

Fix for
Bug 15707329 - SUNBT7034087 console-kit-daemon dumped core when using KDE

Need to determine why we need this to avoid upstream's assert() call.

--- dbus-glib-0.88/dbus/dbus-gobject.c-orig	2011-07-22 18:43:55.286789655 -0500
+++ dbus-glib-0.88/dbus/dbus-gobject.c	2011-07-22 18:48:14.153767255 -0500
@@ -716,6 +716,8 @@ write_interface (gpointer key, gpointer 
       s = lookup_property_name (data->object, name, propname);
 
       spec = g_object_class_find_property (g_type_class_peek (data->gtype), s);
+      if (spec != NULL) {
+
       g_assert (spec != NULL);
       g_free (s);
       
@@ -747,6 +749,7 @@ write_interface (gpointer key, gpointer 
           
 	  g_string_append (xml, "\"/>\n");
 	}
+        }
       
       g_free (dbus_type);
     }