1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(trunk libT) fix minor dead store detected by clang static analyzer

This commit is contained in:
Jordan Lee 2011-03-31 04:03:07 +00:00
parent bb561b5494
commit d8e28ec284

View file

@ -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)