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:
committed by
Serge Hallyn
parent
8893c51480
commit
2b393114c7
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user