]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
pam: avoid compiler warning in copyIntoSecret()
authorEric Biggers <ebiggers@google.com>
Mon, 20 Dec 2021 03:20:54 +0000 (21:20 -0600)
committerEric Biggers <ebiggers@google.com>
Mon, 20 Dec 2021 03:43:34 +0000 (21:43 -0600)
commit546dd336d15251981bb8bcb30c159d0a39bb387e
tree12fd2292652b5ccc8e31ff82773b6a8b5213b1ae
parent360467d0df626d2d0eac003a0a210814910804ce
pam: avoid compiler warning in copyIntoSecret()

gcc 11 enabled -Wmaybe-uninitialized by default.  It causes a
false-positive warning in copyIntoSecret() because gcc doesn't
understand that mlock() is special and doesn't read from the memory.

Just initialize the memory to avoid this warning.
pam/pam.c