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;
}