From 1918ec4a55ddbeeee79567addbdf249adc81a3bd Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 17 Jul 2017 14:44:18 -0600 Subject: [PATCH] When reading a single character via a switch() use "default: instead of "case 1:" to quiet a coverity warning. --- plugins/sudoers/sudoreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 052bee39e..3504c8166 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -470,7 +470,7 @@ getsize_cb(int fd, int what, void *v) /* FALLTHROUGH */ case 0: goto done; - case 1: + default: CLR(gc->state, READCHAR); break; } -- 2.40.0