diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-13 15:54:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-13 15:54:43 +0000 |
commit | 3f62636a98777125444f5bceff812428f6a73039 (patch) | |
tree | 923a0f0bcc9607ac8cde3fa9bb3125c6c2449a83 /src/libstddjb/child_spawn.c | |
parent | 81fbf8c30b4a6fd3a91ba2d986f35541015ae1e6 (diff) | |
download | skalibs-3f62636a98777125444f5bceff812428f6a73039.tar.xz |
Applied Roman Kimov's fixesv2.3.1.3
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r-- | src/libstddjb/child_spawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c index a9938c7..922c777 100644 --- a/src/libstddjb/child_spawn.c +++ b/src/libstddjb/child_spawn.c @@ -57,7 +57,7 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const for (i = 0 ; i < n ; i++) if ((ndelay_on(p[i][i & 1]) < 0) || (coe(p[i][i & 1]) < 0)) { - e = errno ; goto errsp ; + e = errno ; goto errp ; } for (i = 2 ; i < n ; i++) { @@ -183,8 +183,8 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const errsp0: fd_close(syncpipe[0]) ; #endif - i = n ; errp: + i = n ; while (i--) { fd_close(p[i][1]) ; |