summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gabble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gabble.c b/src/gabble.c
index 0d2fb6e29..31ca34201 100644
--- a/src/gabble.c
+++ b/src/gabble.c
@@ -25,6 +25,8 @@
# include <unistd.h>
#endif
+#include <dbus/dbus.h>
+
#include <glib/gstdio.h>
#include <telepathy-glib/debug.h>
@@ -116,6 +118,9 @@ gabble_init (void)
g_thread_init (NULL);
#endif
+ if (!dbus_threads_init_default ())
+ g_error ("Unable to initialize libdbus thread-safety (out of memory?)");
+
g_type_init ();
wocky_init ();
}