From 2b393114c7b83ea1c9e8278be2a5a8fc94626fab Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 2 Sep 2023 00:54:16 +0200 Subject: [PATCH] lib/pwauth.c: Remove dead code If the string is "", then strzero() is a no-op. We don't need to test that. Signed-off-by: Alejandro Colomar --- lib/pwauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pwauth.c b/lib/pwauth.c index 693b3b7d..d547e53e 100644 --- a/lib/pwauth.c +++ b/lib/pwauth.c @@ -202,7 +202,7 @@ int pw_auth (const char *cipher, */ clear_pass = clear; - if (wipe_clear_pass && (NULL != clear) && ('\0' != *clear)) { + if (wipe_clear_pass && (NULL != clear)) { strzero (clear); } return retval;