]> granicus.if.org Git - sudo/commitdiff
When reading a single character via a switch() use "default: instead
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 20:44:18 +0000 (14:44 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 20:44:18 +0000 (14:44 -0600)
of "case 1:" to quiet a coverity warning.

plugins/sudoers/sudoreplay.c

index 052bee39e845f87ed3d99af821b1f875726c719c..3504c8166f7bf69776a88b5cbd56c9e8b6a04189 100644 (file)
@@ -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;
            }