summaryrefslogtreecommitdiff
path: root/dbus-proxy
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-08-27 16:13:49 +0200
committerAlexander Larsson <alexl@redhat.com>2015-08-27 16:13:49 +0200
commitf5aba30ade8e2357e7f8b961566a97914aaf1570 (patch)
tree9ec466be726bbd54187d1dd1152badc2cb592d1f /dbus-proxy
parent52525f46fd997ab04f30d1d0fc8619d424f6f9b2 (diff)
downloadxdg-app-f5aba30ade8e2357e7f8b961566a97914aaf1570.tar.gz
dbus-proxy: Fix flags arg passed to g_socket_receive_message
This is an out param, not an in param
Diffstat (limited to 'dbus-proxy')
-rw-r--r--dbus-proxy/xdg-app-proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus-proxy/xdg-app-proxy.c b/dbus-proxy/xdg-app-proxy.c
index 875b3fd..f4c0d8b 100644
--- a/dbus-proxy/xdg-app-proxy.c
+++ b/dbus-proxy/xdg-app-proxy.c
@@ -618,13 +618,14 @@ buffer_read (ProxySide *side,
}
else
{
+ int flags;
v.buffer = &buffer->data[buffer->pos];
v.size = buffer->size - buffer->pos;
res = g_socket_receive_message (socket, NULL, &v, 1,
&messages,
&num_messages,
- G_SOCKET_MSG_NONE, NULL, &error);
+ &flags, NULL, &error);
if (res < 0 && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK))
{
g_error_free (error);