From 21f3c8db00f0d4a3f0989559847d2564f4c73a11 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 20 Oct 2014 19:56:05 -0500 Subject: More static analysis fixes from Ashwini Sharma. --- toys/other/netcat.c | 1 - 1 file changed, 1 deletion(-) (limited to 'toys/other') diff --git a/toys/other/netcat.c b/toys/other/netcat.c index 3c6f630b..485dda13 100644 --- a/toys/other/netcat.c +++ b/toys/other/netcat.c @@ -166,7 +166,6 @@ void netcat_main(void) if (!child && toys.optc) { int fd = pollfds[0].fd; - if (!temp) close(sockfd); dup2(fd, 0); dup2(fd, 1); if (toys.optflags&FLAG_L) dup2(fd, 2); -- cgit v1.2.3