From 0c502d5bc3c1858acb78d57439767f8ef24f90fe Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 15 Feb 2003 17:15:40 +0000 Subject: 2003-02-15 Anders Carlsson * dbus/dbus-internals.h: Fix build without tests. * dbus/dbus-list.c: (alloc_link): Fix a segfault when a malloc fails. * dbus/dbus-memory.c: (initialize_malloc_debug), (dbus_malloc), (dbus_malloc0), (dbus_realloc): Add support for malloc debugging. --- dbus/dbus-list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dbus/dbus-list.c') diff --git a/dbus/dbus-list.c b/dbus/dbus-list.c index 7f12e3db..8c4e0c3a 100644 --- a/dbus/dbus-list.c +++ b/dbus/dbus-list.c @@ -78,7 +78,8 @@ alloc_link (void *data) } link = _dbus_mem_pool_alloc (list_pool); - link->data = data; + if (link) + link->data = data; dbus_mutex_unlock (list_pool_lock); -- cgit