diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-07-27 09:33:19 +0200 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-07-27 21:28:49 +0200 |
commit | 558ce3044d5e22890b272b4e90f3ac0b236726a0 (patch) | |
tree | 904f9bb9fbe50eede508504e4c1b3e70c5b93e27 /tests/CuSkip.pm | |
parent | f0e0f3ac924746b9436f8f54da467162b7c78ee3 (diff) | |
download | coreutils-558ce3044d5e22890b272b4e90f3ac0b236726a0.tar.xz |
maint: pacify GCC 6 with -Wnull-dereference
src/id.c:249:29: error: potential null pointer dereference \
[-Werror=null-dereference]
pw_name = xstrdup (pwd->pw_name);
~~~^~~~~~~~~
src/whoami.c:89:11: error: potential null pointer dereference \
[-Werror=null-dereference]
puts (pw->pw_name);
~~^~~~~~~~~
* src/id.c (main): Explicitly exit with EXIT_FAILURE after an eror to
help gcc-6 to detect that the dereferenced pointer is valid.
* src/whoami.c (main): Likewise.
Diffstat (limited to 'tests/CuSkip.pm')
0 files changed, 0 insertions, 0 deletions