diff options
Diffstat (limited to 'src/libstddjb')
-rw-r--r-- | src/libstddjb/child_spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c index 867f800..5d696e4 100644 --- a/src/libstddjb/child_spawn.c +++ b/src/libstddjb/child_spawn.c @@ -192,7 +192,7 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const fd_close(syncpipe[0]) ; #endif - for (; i ; i--) + for (i = n ; i ; i--) { fd_close(p[i-1][i & 1]) ; fds[i-1] = p[i-1][!(i & 1)] ; |