summaryrefslogtreecommitdiffstats
path: root/newlib/libc/posix
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/posix')
-rw-r--r--newlib/libc/posix/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/posix/popen.c b/newlib/libc/posix/popen.c
index f6a7421ee..4fd3dd93d 100644
--- a/newlib/libc/posix/popen.c
+++ b/newlib/libc/posix/popen.c
@@ -71,7 +71,7 @@ popen(program, type)
FILE *iop;
int pdes[2], pid;
- if (*type != 'r' && *type != 'w' || type[1]) {
+ if ((*type != 'r' && *type != 'w') || type[1]) {
errno = EINVAL;
return (NULL);
}