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:
parent
bb561b5494
commit
d8e28ec284
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue