diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2010-03-19 21:42:54 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2010-03-19 21:42:54 +0100 |
commit | f76399115ec64a612b6f8cf489db74b32523d765 (patch) | |
tree | eb890fa253fba0b38cf1bb9dc25bf2f903579e0b /dbus/dbus-memory.c | |
parent | 96958b238f1523c99542fb1ea86c86516a75f164 (diff) | |
download | dbus-f76399115ec64a612b6f8cf489db74b32523d765.tar.gz |
win32 fix: Only diplay memory allocation testing error note once.
Diffstat (limited to 'dbus/dbus-memory.c')
-rw-r--r-- | dbus/dbus-memory.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index b3ba067b..47296267 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) |