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 <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2023-09-02 00:54:16 +02:00
committed by Serge Hallyn
parent 8893c51480
commit 2b393114c7
+1 -1
View File
@@ -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;