]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/ngircd.c
fix clang warning about dead stores
[ngircd-alex.git] / src / ngircd / ngircd.c
index 4cac909d8f02e3f4d60593693ee6855b49e7f338..58383cfaac51924b6782be3d7a08bf7a96a1056e 100644 (file)
@@ -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();