projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd6f572
)
tcp-bsd: Use default main context if none specified
author
Olivier Crête
<olivier.crete@collabora.com>
Thu, 27 Mar 2014 16:33:23 +0000
(12:33 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Thu, 27 Mar 2014 16:41:28 +0000
(12:41 -0400)
socket/tcp-bsd.c
patch
|
blob
|
history
diff --git
a/socket/tcp-bsd.c
b/socket/tcp-bsd.c
index
3a08874
..
3018832
100644
(file)
--- 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;