mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Fix the following clang 3.6.0 warning in contrib/amd/hlfsd/homedir.c:
contrib/amd/hlfsd/homedir.c:497:8: error: address of array 'buf' will
always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
if (!buf || buf[0] == '\0')
~^~~
In the affected function, 'buf' is declared as an array of char, so it
can never be null. Remove the unecessary check.
This commit is contained in:
parent
47176cacac
commit
54edb5043c
1 changed files with 1 additions and 1 deletions
|
|
@ -494,7 +494,7 @@ readent:
|
|||
buf[0] = '\0';
|
||||
fgets(buf, 256, passwd_fp);
|
||||
passwd_line++;
|
||||
if (!buf || buf[0] == '\0')
|
||||
if (buf[0] == '\0')
|
||||
goto readent;
|
||||
|
||||
/* read user name */
|
||||
|
|
|
|||
Loading…
Reference in a new issue