summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream.c b/stream.c
index 4fdd767e..f2ff72e2 100644
--- a/stream.c
+++ b/stream.c
@@ -1471,9 +1471,8 @@ static struct stdio_mode do_parse_mode(val mode_str, struct stdio_mode m_dfl,
if (*ms == '+') {
ms++;
- if (m.read)
- m.write = 1;
m.read = 1;
+ m.write = 1;
}
if (!m.read && !m.write)