From 8ad3bafab61938d3af4f3fae3b676d5321e75d50 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 22 Nov 2013 23:40:57 +0100 Subject: [PATCH] coverity: don't fallback to next case for clarity Even if the code was correct, add an `_exit(0)` to the first branch and do not rely on the next case for that. --- src/daemon/privsep_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/privsep_io.c b/src/daemon/privsep_io.c index 638e5458..ae31278c 100644 --- a/src/daemon/privsep_io.c +++ b/src/daemon/privsep_io.c @@ -192,8 +192,8 @@ must_read(void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; - case 0: _exit(0); + case 0: _exit(0); default: pos += res; } @@ -214,8 +214,8 @@ must_write(const void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; - case 0: _exit(0); + case 0: _exit(0); default: pos += res; } -- 2.39.5