summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-11 08:00:28 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-11 08:00:28 +0000
commitfa72df629771015c3b8de4ab4c58ea6f9497e572 (patch)
tree17ee734db6a37c5246289db345bf0734a37f7182 /bin
parent2dc7af0e60e4b6fd993a2abf26b985d2f46bb4fa (diff)
Remove redundant assignment
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/io.c b/bin/ksh/io.c
index fa4e8016bab..f98e136ca29 100644
--- a/bin/ksh/io.c
+++ b/bin/ksh/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.25 2014/08/11 20:28:47 guenther Exp $ */
+/* $OpenBSD: io.c,v 1.26 2015/09/11 08:00:27 guenther Exp $ */
/*
* shell buffered IO and formatted output
@@ -296,7 +296,7 @@ check_fd(char *name, int mode, const char **emsgp)
if (isdigit((unsigned char)name[0]) && !name[1]) {
fd = name[0] - '0';
- if ((fl = fcntl(fd = name[0] - '0', F_GETFL, 0)) < 0) {
+ if ((fl = fcntl(fd, F_GETFL, 0)) < 0) {
if (emsgp)
*emsgp = "bad file descriptor";
return -1;