public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/dbus-glib/files: dbus-glib-0.94-marshall_objs.patch
@ 2011-06-10  6:56 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2011-06-10  6:56 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/06/10 06:56:13

  Added:                dbus-glib-0.94-marshall_objs.patch
  Log:
  Upstream patch: Fix regression in marshalling objects as object paths. Thanks to freeedrich for notifying me at Freenode.
  
  (Portage version: 2.2.0_alpha38/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/dbus-glib/files/dbus-glib-0.94-marshall_objs.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dbus-glib/files/dbus-glib-0.94-marshall_objs.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dbus-glib/files/dbus-glib-0.94-marshall_objs.patch?rev=1.1&content-type=text/plain

Index: dbus-glib-0.94-marshall_objs.patch
===================================================================
From 3e0828f57c3925ea9b63d22ab82d991a0fea0536 Mon Sep 17 00:00:00 2001
From: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date: Thu, 02 Jun 2011 12:49:51 +0000
Subject: Fix regression in marshalling objects as object paths

This regressed while fixing fd.o #36811. NetworkManager apparently uses
this idiom.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37852
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628890
Tested-by: Michael Biebl <biebl@debian.org>
Reviewed-by: Colin Walters <walters@verbum.org>
---
diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c
index 3b0bd17..7ee0b4f 100644
--- a/dbus/dbus-gobject.c
+++ b/dbus/dbus-gobject.c
@@ -3049,16 +3049,16 @@ out:
 const char *
 _dbus_gobject_get_path (GObject *obj)
 {
-  GSList *registrations;
+  ObjectExport *oe;
   ObjectRegistration *o;
 
-  registrations = g_object_get_data (obj, "dbus_glib_object_registrations");
+  oe = g_object_get_data (obj, "dbus_glib_object_registrations");
 
-  if (registrations == NULL)
+  if (oe == NULL || oe->registrations == NULL)
     return NULL;
 
   /* First one to have been registered wins */
-  o = registrations->data;
+  o = oe->registrations->data;
 
   return o->object_path;
 }
--
cgit v0.8.3-6-g21f6






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-libs/dbus-glib/files: dbus-glib-0.94-marshall_objs.patch
@ 2011-10-16  0:13 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2011-10-16  0:13 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/10/16 00:13:13

  Removed:              dbus-glib-0.94-marshall_objs.patch
  Log:
  old
  
  (Portage version: 2.2.0_alpha67/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-16  0:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-16  0:13 [gentoo-commits] gentoo-x86 commit in dev-libs/dbus-glib/files: dbus-glib-0.94-marshall_objs.patch Samuli Suominen (ssuominen)
  -- strict thread matches above, loose matches on Subject: below --
2011-06-10  6:56 Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox