From 915e40222912cbcbf989bcb1e9806e03afea53d8 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 28 Jun 2021 17:28:55 +0000 Subject: bugfix: remove bogus double test before erroring out Signed-off-by: Laurent Bercot --- src/s6-rc/s6-rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.2.3