[Pkg-telepathy-commits] [libnice] 177/265: tcp-bsd: Use default main context if none specified
Simon McVittie
smcv at debian.org
Wed May 14 12:05:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 693c96dc692f65828da798fc4aea8932818a6ccc
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Thu Mar 27 12:33:23 2014 -0400
tcp-bsd: Use default main context if none specified
---
socket/tcp-bsd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/socket/tcp-bsd.c b/socket/tcp-bsd.c
index 3a08874..3018832 100644
--- a/socket/tcp-bsd.c
+++ b/socket/tcp-bsd.c
@@ -164,6 +164,8 @@ nice_tcp_bsd_socket_new (GMainContext *ctx, NiceAddress *addr)
sock->priv = priv = g_slice_new0 (TcpPriv);
+ if (ctx == NULL)
+ ctx = g_main_context_default ();
priv->context = g_main_context_ref (ctx);
priv->server_addr = *addr;
priv->error = FALSE;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list