From 86312d159d55e99db5a5c82d9c50f31a1fe28199 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 7 Dec 2020 18:28:04 +0000 Subject: Some trivial bugfixes and cleanups --- src/libstddjb/child_spawn1_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstddjb/child_spawn1_internal.c') diff --git a/src/libstddjb/child_spawn1_internal.c b/src/libstddjb/child_spawn1_internal.c index 460bca0..6b3dc91 100644 --- a/src/libstddjb/child_spawn1_internal.c +++ b/src/libstddjb/child_spawn1_internal.c @@ -33,7 +33,7 @@ pid_t child_spawn1_internal (char const *prog, char const *const *argv, char con } e = posix_spawn_file_actions_init(&actions) ; if (e) goto errattr ; - if (p[to & 1] != to & 1) + if (p[to & 1] != (to & 1)) { e = posix_spawn_file_actions_adddup2(&actions, p[to & 1], to & 1) ; if (e) goto erractions ; -- cgit v1.2.3