repo: ngircd action: commit revision: path_from: revision_from: 605b6a67bc7f41432d25ab646c232e347fd7a33f: path_to: revision_to:
commit 605b6a67bc7f41432d25ab646c232e347fd7a33f Author: Florian WestphalDate: Fri May 6 20:31:56 2011 +0200 fix clang warning about dead stores clang 'scan-build': Value stored to 'r' is never read Value stored to 'fd' is never read diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c
--- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -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), diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c
--- a/src/ngircd/ngircd.c
+++ b/src/ngircd/ngircd.c
@@ -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();
-----END OF PAGE-----