2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 06:45:10 +00:00

Quiet two PVS-studio warnings.

This commit is contained in:
Todd C. Miller
2022-01-05 11:04:18 -07:00
parent 1b72f138e3
commit 72989bf83f
2 changed files with 2 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ verify_user(struct passwd *pw, char *prompt, int validated,
/* Get the password unless the auth function will do it for us */
if (!standalone) {
if (IS_NONINTERACTIVE(auth_switch)) {
if (IS_NONINTERACTIVE(&auth_switch[0])) {
status = AUTH_NONINTERACTIVE;
goto done;
}