about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/stdio/__towrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c
index 0a69d926..b022cbca 100644
--- a/src/stdio/__towrite.c
+++ b/src/stdio/__towrite.c
@@ -3,7 +3,7 @@
 int __towrite(FILE *f)
 {
 	f->mode |= f->mode-1;
-	if (f->flags & (F_NOWR)) {
+	if (f->flags & F_NOWR) {
 		f->flags |= F_ERR;
 		return EOF;
 	}