From d8e28ec284a2078e0f424757fdf272454df21818 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 31 Mar 2011 04:03:07 +0000 Subject: [PATCH] (trunk libT) fix minor dead store detected by clang static analyzer --- libtransmission/tr-udp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libtransmission/tr-udp.c b/libtransmission/tr-udp.c index 45b7d575f..b22a57e38 100644 --- a/libtransmission/tr-udp.c +++ b/libtransmission/tr-udp.c @@ -158,13 +158,11 @@ rebind_ipv6(tr_session *ss, bool force) if(ss->udp6_socket < 0) { ss->udp6_socket = s; - s = -1; } else { rc = dup2(s, ss->udp6_socket); if(rc < 0) goto fail; close(s); - s = -1; } if(ss->udp6_bound == NULL)