From f76399115ec64a612b6f8cf489db74b32523d765 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 19 Mar 2010 21:42:54 +0100 Subject: [PATCH] win32 fix: Only diplay memory allocation testing error note once. --- dbus/dbus-memory.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index b3ba067bd..472962671 100644 --- a/dbus/dbus-memory.c +++ b/dbus/dbus-memory.c @@ -246,8 +246,15 @@ _dbus_decrement_fail_alloc_counter (void) { _dbus_initialize_malloc_debug (); #ifdef DBUS_WIN_FIXME - _dbus_warn("disabled memory allocation errors for now, it makes testing much more complicated"); - return FALSE; + { + static dbus_bool_t called = 0; + if (!called) + { + _dbus_warn("TODO: memory allocation testing errors disabled for now\n"); + called = 1; + } + return FALSE; + } #endif if (fail_alloc_counter <= 0) -- 2.47.3