From: eXeC001er Date: Fri, 11 Nov 2011 11:33:23 +0000 (+0000) Subject: Remove some dead code related to fd.o #37258 X-Git-Tag: dbus-1.4.18~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f50ea3140ed50ac1eb0f6ae51aebf0586f655c6f;p=thirdparty%2Fdbus.git Remove some dead code related to fd.o #37258 This would now just attempt to close fd -1, which is useless. [commit message added by smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37258 Reviewed-by: Simon McVittie --- diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 98667f249..1a8f6fc25 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -1216,7 +1216,6 @@ _dbus_connect_tcp_socket_with_nonce (const char *host, _dbus_error_from_errno (errno), "Failed to lookup host/port: \"%s:%s\": %s (%d)", host, port, gai_strerror(res), res); - _dbus_close (fd, NULL); return -1; }