summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-list.c
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-09-14 04:26:00 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-09-14 04:26:00 +0000
commit57ab23491c8c80b4a1606ea3b72e179c1b742bb9 (patch)
tree2e1c63b4be9d4a7b22cb9473dab60a68f921edf0 /dbus/dbus-list.c
parentf82bdd3ab39cc5741189a4ab16dc3533a79c6617 (diff)
* dbus/dbus-threads.c: Allow recursive mutex's to be passed into
dbus_threads_init and be used by the dbus mutex functions to avoid deadlocks. * doc/TODO: Remove recursive mutex dbus_connection_dispatch TODO item
Diffstat (limited to 'dbus/dbus-list.c')
-rw-r--r--dbus/dbus-list.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbus/dbus-list.c b/dbus/dbus-list.c
index 394db5f5..09ece641 100644
--- a/dbus/dbus-list.c
+++ b/dbus/dbus-list.c
@@ -55,8 +55,7 @@ alloc_link (void *data)
{
DBusList *link;
- if (!_DBUS_LOCK (list))
- return NULL;
+ _DBUS_LOCK (list);
if (list_pool == NULL)
{