]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
win32 fix: Only diplay memory allocation testing error note once.
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 19 Mar 2010 20:42:54 +0000 (21:42 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 19 Mar 2010 20:42:54 +0000 (21:42 +0100)
dbus/dbus-memory.c

index b3ba067bd5249d15437c29bcd9d4e421fcd820be..4729626712a12fd1b1bdce9f1d944c1133731048 100644 (file)
@@ -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)