diff options
author | Guillem Jover <guillem@debian.org> | 2008-11-21 16:52:03 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2008-12-05 09:06:08 +0200 |
commit | bac56ef59f96318eb4954c43bfc83590ef7d7492 (patch) | |
tree | 90f4cb2771834b0244edf7aa1bcf1f270a91675e /lib | |
parent | b56f46bba29e6a369105d75428ceffc3b79de346 (diff) | |
download | dpkg-bac56ef59f96318eb4954c43bfc83590ef7d7492.tar.gz |
libdpkg: In checksubprocerr return an explicit 0 instead of n
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mlib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mlib.c b/lib/mlib.c index 2d7136eaf..edf21f408 100644 --- a/lib/mlib.c +++ b/lib/mlib.c @@ -121,7 +121,9 @@ void m_pipe(int *fds) { int checksubprocerr(int status, const char *description, int flags) { int n; if (WIFEXITED(status)) { - n= WEXITSTATUS(status); if (!n) return n; + n = WEXITSTATUS(status); + if (!n) + return 0; if (flags & PROCNOERR) return -1; if (flags & PROCWARN) |