summaryrefslogtreecommitdiff
path: root/src/gabble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gabble.c')
-rw-r--r--src/gabble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gabble.c b/src/gabble.c
index f6bbf2c39..bd5056dfd 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/telepathy-glib.h>
@@ -113,6 +115,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 ();
}