aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/compat/pipe2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/compat/pipe2.c b/tests/compat/pipe2.c
index c27a858..d7b4062 100644
--- a/tests/compat/pipe2.c
+++ b/tests/compat/pipe2.c
@@ -42,7 +42,7 @@ static int setfl(int fd, int flag)
42static void create_issue_1069_sentinels(int socket_vector[2]) 42static void create_issue_1069_sentinels(int socket_vector[2])
43{ 43{
44 int fd = open("CONIN$", O_RDONLY); 44 int fd = open("CONIN$", O_RDONLY);
45 if (fd == -1 || fd > socket_vector[0] && fd > socket_vector[1]) { 45 if (fd == -1 || (fd > socket_vector[0] && fd > socket_vector[1])) {
46 return; 46 return;
47 } 47 }
48 create_issue_1069_sentinels(socket_vector); 48 create_issue_1069_sentinels(socket_vector);