summaryrefslogtreecommitdiff
path: root/dbus/dbus-memory.c
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-03-19 21:42:54 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2010-03-19 21:42:54 +0100
commitf76399115ec64a612b6f8cf489db74b32523d765 (patch)
treeeb890fa253fba0b38cf1bb9dc25bf2f903579e0b /dbus/dbus-memory.c
parent96958b238f1523c99542fb1ea86c86516a75f164 (diff)
downloaddbus-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.c11
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)