From 0b03d7760e81e61032b04e52fb65ec355023502e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 15 Apr 2013 18:01:57 +0100 Subject: [PATCH 4/8] Statically initialize global locks to NULL This means we can rely on them not to contain junk. --- dbus/dbus-internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 28486a8..bd67eda 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -301,7 +301,7 @@ extern int _dbus_current_generation; /* Thread initializers */ #define _DBUS_LOCK_NAME(name) _dbus_lock_##name #define _DBUS_DECLARE_GLOBAL_LOCK(name) extern DBusRMutex *_dbus_lock_##name -#define _DBUS_DEFINE_GLOBAL_LOCK(name) DBusRMutex *_dbus_lock_##name +#define _DBUS_DEFINE_GLOBAL_LOCK(name) DBusRMutex *_dbus_lock_##name = NULL #define _DBUS_LOCK(name) _dbus_rmutex_lock (_dbus_lock_##name) #define _DBUS_UNLOCK(name) _dbus_rmutex_unlock (_dbus_lock_##name) -- 1.7.10.4