diff options
author | Karel Zak | 2018-12-11 14:14:37 +0100 |
---|---|---|
committer | Karel Zak | 2018-12-11 14:14:37 +0100 |
commit | 4d33953ea9790d6369a3a843e54fd76e5e65d8ab (patch) | |
tree | 58ca39c07b3636ed213729e7cbc4a3f65e6cb5b2 /login-utils | |
parent | tests: check for tar and {b,g}zip (diff) | |
parent | hexdump: fix potential null pointer dereference warnings (diff) | |
download | kernel-qcow2-util-linux-4d33953ea9790d6369a3a843e54fd76e5e65d8ab.tar.gz kernel-qcow2-util-linux-4d33953ea9790d6369a3a843e54fd76e5e65d8ab.tar.xz kernel-qcow2-util-linux-4d33953ea9790d6369a3a843e54fd76e5e65d8ab.zip |
Merge branch 'fix-couple-warnings' of https://github.com/kerolasa/util-linux
* 'fix-couple-warnings' of https://github.com/kerolasa/util-linux:
hexdump: fix potential null pointer dereference warnings
lslogins: remove duplicate NULL check
libsmartcols: fix variable shadowing
lsblk: fix null pointer dereferences
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/lslogins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/lslogins.c b/login-utils/lslogins.c index e2a0d43df..280768e7a 100644 --- a/login-utils/lslogins.c +++ b/login-utils/lslogins.c @@ -623,7 +623,7 @@ static int valid_pwd(const char *str) return 0; /* salt$ */ - for (; p && *p; p++) { + for (; *p; p++) { if (*p == '$') { p++; break; |