summaryrefslogtreecommitdiff
path: root/lib/c_glib
diff options
context:
space:
mode:
authorJames E. King III <jking@apache.org>2019-02-01 19:17:59 -0500
committerJames E. King III <jking@apache.org>2019-02-02 01:17:46 -0500
commitd77e0977260fa8d82d56836ed07cdca0f23cadcb (patch)
tree0f62dc3586b4fea4784f501d9c673db6c16e7655 /lib/c_glib
parentef9405f9302831c0c7a23988aae1643747943c50 (diff)
downloadthrift-d77e0977260fa8d82d56836ed07cdca0f23cadcb.tar.gz
fix minor glib warning
Diffstat (limited to 'lib/c_glib')
-rw-r--r--lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c b/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c
index 6dd0f0d3a..560c24e28 100644
--- a/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c
+++ b/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c
@@ -163,7 +163,7 @@ thrift_socket_open (ThriftTransport *transport, GError **error)
/* open a connection */
if (connect (tsocket->sd, (struct sockaddr *) &pin, sizeof(pin)) == -1)
{
- thrift_socket_close(tsocket, NULL);
+ thrift_socket_close(transport, NULL);
g_set_error (error, THRIFT_TRANSPORT_ERROR, THRIFT_TRANSPORT_ERROR_CONNECT,
"failed to connect to host %s:%d - %s",
tsocket->hostname, tsocket->port, strerror(errno));