(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
1 changed files with 0 additions and 2 deletions

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)