From 45c42f3cc2c372ad0182905f15ecd43519585ba9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 12 Jul 2011 15:09:36 +0200 Subject: [PATCH] gnio-util: properly set the GError if UNIX sockets are not implemented https://bugs.freedesktop.org/show_bug.cgi?id=38997 --- telepathy-glib/gnio-util.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telepathy-glib/gnio-util.c b/telepathy-glib/gnio-util.c index 3938dce..0b02b5c 100644 --- a/telepathy-glib/gnio-util.c +++ b/telepathy-glib/gnio-util.c @@ -354,7 +354,7 @@ tp_unix_connection_send_credentials_with_byte (GSocketConnection *connection, return _tp_unix_connection_send_credentials_with_byte ( G_UNIX_CONNECTION (connection), byte, cancellable, error); #else - g_set_error (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "Unix sockets not supported"); return FALSE; #endif @@ -565,7 +565,7 @@ tp_unix_connection_receive_credentials_with_byte (GSocketConnection *connection, return _tp_unix_connection_receive_credentials_with_byte ( G_UNIX_CONNECTION (connection), byte, cancellable, error); #else - g_set_error (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "Unix sockets not supported"); return FALSE; #endif -- 1.7.4.1