fix clang warning about dead stores
clang 'scan-build': Value stored to 'r' is never read Value stored to 'fd' is never read
This commit is contained in:
parent
10c7a15687
commit
605b6a67bc
|
@ -526,6 +526,8 @@ IRC_TOPIC( CLIENT *Client, REQUEST *Req )
|
|||
Client_ID(Client),
|
||||
Channel_Name(chan), topic);
|
||||
#ifndef STRICT_RFC
|
||||
if (!r)
|
||||
return r;
|
||||
r = IRC_WriteStrClient(from, RPL_TOPICSETBY_MSG,
|
||||
Client_ID(Client),
|
||||
Channel_Name(chan),
|
||||
|
|
|
@ -706,10 +706,8 @@ NGIRCd_Init( bool NGIRCd_NoDaemon )
|
|||
|
||||
/* Detach stdin, stdout and stderr */
|
||||
Setup_FDStreams(fd);
|
||||
if (fd > 2) {
|
||||
if (fd > 2)
|
||||
close(fd);
|
||||
fd = -1;
|
||||
}
|
||||
}
|
||||
pid = getpid();
|
||||
|
||||
|
|
Loading…
Reference in New Issue