]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslogins: remove duplicate NULL check
authorSami Kerola <kerolasa@iki.fi>
Mon, 10 Dec 2018 20:41:18 +0000 (20:41 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 10 Dec 2018 20:41:18 +0000 (20:41 +0000)
commita81a48779b858b7ab49fff3ed52dec21a26049a5
tree62110076d1d497eb5469200e9f266f1460a35bab
parent539e96b14106d4245589fdf7963c68530a3026a7
lslogins: remove duplicate NULL check

Having this excess NULL check in place causes small performance penalty, and
makes compiler to guess wrong if a null should be checked.  To me getting
rid of false positive warning is more useful.

login-utils/lslogins.c:634:7: warning: potential null pointer dereference
[-Wnull-dereference]

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