diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-07-14 18:47:18 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-08-05 12:27:10 +0100 |
commit | 436b8fc7822d13d31fcfd379ef4fed2a8c5ac102 (patch) | |
tree | 55384e93351caadf995e44d9ff8c05b992073693 /dbus/dbus-memory.c | |
parent | 56bac6abf2e96a51f98f5adca21a2f87edc7872c (diff) | |
download | dbus-436b8fc7822d13d31fcfd379ef4fed2a8c5ac102.tar.gz |
dbus-memory: move variable only used on Windows into the conditional
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-memory.c')
-rw-r--r-- | dbus/dbus-memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index ee40e82b..c5f46413 100644 --- a/dbus/dbus-memory.c +++ b/dbus/dbus-memory.c @@ -233,7 +233,6 @@ _dbus_get_fail_alloc_failures (void) } #ifdef DBUS_BUILD_TESTS -static dbus_bool_t called = 0; /** * Called when about to alloc some memory; if * it returns #TRUE, then the allocation should @@ -248,6 +247,8 @@ _dbus_decrement_fail_alloc_counter (void) _dbus_initialize_malloc_debug (); #ifdef DBUS_WIN_FIXME { + static dbus_bool_t called = 0; + if (!called) { _dbus_verbose("TODO: memory allocation testing errors disabled for now\n"); |