From: Ralf Habacker Date: Fri, 19 Mar 2010 20:42:54 +0000 (+0100) Subject: win32 fix: Only diplay memory allocation testing error note once. X-Git-Tag: dbus-1.3.1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f76399115ec64a612b6f8cf489db74b32523d765;p=thirdparty%2Fdbus.git win32 fix: Only diplay memory allocation testing error note once. --- 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)