telepathy-haze: Initialize libdbus for thread-safety
Will Thompson
wjt at kemper.freedesktop.org
Sun Jun 23 03:44:47 PDT 2013
Module: telepathy-haze
Branch: master
Commit: cbe583bce4ceec03caf9b2d67af0ea6ca3ea8818
URL: http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=cbe583bce4ceec03caf9b2d67af0ea6ca3ea8818
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue Jun 4 12:17:52 2013 +0100
Initialize libdbus for thread-safety
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65296
---
src/main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
index 4cd171c..0c48ac5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,6 +28,7 @@
#include <errno.h>
#include <signal.h>
+#include <dbus/dbus.h>
#include <glib.h>
#include <libpurple/account.h>
@@ -252,6 +253,10 @@ main(int argc,
{
int ret = 0;
+ if (!dbus_threads_init_default ())
+ g_error ("Unable to initialize libdbus for thread-safety "
+ "(out of memory?)");
+
g_set_prgname(UI_ID);
haze_debug_set_flags_from_env ();
More information about the telepathy-commits
mailing list