]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/pwauth.c: Remove dead code
authorAlejandro Colomar <alx@kernel.org>
Fri, 1 Sep 2023 22:54:16 +0000 (00:54 +0200)
committerSerge Hallyn <serge@hallyn.com>
Mon, 4 Sep 2023 13:57:18 +0000 (08:57 -0500)
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>
lib/pwauth.c

index 693b3b7df4f001c240237875b446d791d6bd5fb1..d547e53e59506d1b6c44f63e880e58dd73e81407 100644 (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;