]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: ensure getutxid() does not use uninitialized variable [coverity scan]
authorSami Kerola <kerolasa@iki.fi>
Sat, 8 Aug 2020 19:06:42 +0000 (20:06 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Oct 2020 09:30:45 +0000 (11:30 +0200)
commitd2ab69ff6154566a378d584fd61c15cde9e576d0
tree4623a46029d6e3439b8174086998699d854a5e9b
parent8df3f8ef8488894975a6d02b9c7e8e67ed4fad69
login: ensure getutxid() does not use uninitialized variable [coverity scan]

Field ut.ut_pid is uninitialized when calling getutxline().  The safest
option is to ensure all struct data is initialized in the function.

CID: 360793
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/login.c