diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-06-28 17:28:55 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-06-28 17:28:55 +0000 |
commit | 915e40222912cbcbf989bcb1e9806e03afea53d8 (patch) | |
tree | 722644166175e526c824ff6dcebda7363d9ade47 | |
parent | 0e83f5fcfd5896e007ee3d74b6eec00f0480d738 (diff) | |
download | s6-rc-915e40222912cbcbf989bcb1e9806e03afea53d8.tar.xz |
bugfix: remove bogus double test before erroring out
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/s6-rc/s6-rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c index 455bf16..b63fd14 100644 --- a/src/s6-rc/s6-rc.c +++ b/src/s6-rc/s6-rc.c @@ -610,7 +610,7 @@ int main (int argc, char const *const *argv) char pack[cdb_datalen(&c) + 1] ; char const *p = pack ; if (cdb_read(&c, pack, cdb_datalen(&c), cdb_datapos(&c)) < 0) - if (r < 0) strerr_diefu3sys(111, "read ", dbfn, "/resolve.cdb") ; + strerr_diefu3sys(111, "read ", dbfn, "/resolve.cdb") ; while (len--) { uint32_t x ; |