summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-07-20 14:29:32 +0200
committerBenjamin Otte <otte@gnome.org>2009-07-20 14:29:51 +0200
commitdfda26d1a980e6e096d93ecfec8f59872b80dee4 (patch)
tree557d0ef306a29cd7f51ca69689071b3252e29bb3 /gio
parent2cf3e2ed275f8502e1a20195290fa18ebe489216 (diff)
Propagate the right error
Diffstat (limited to 'gio')
-rw-r--r--gio/gsocketclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 2a2b862b6..72c942984 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -514,7 +514,7 @@ g_socket_client_connect (GSocketClient *client,
}
else if (last_error)
{
- g_propagate_error (error, tmp_error);
+ g_propagate_error (error, last_error);
}
else
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,