mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
smack: fix integer as NULL pointer warning in smack_lsm.c
security/smack/smack_lsm.c:1257:16: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3898b1b4eb
commit
c60264c494
1 changed files with 1 additions and 1 deletions
|
@ -1242,7 +1242,7 @@ static void smack_set_catset(char *catset, struct netlbl_lsm_secattr *sap)
|
|||
int rc;
|
||||
int byte;
|
||||
|
||||
if (catset == 0)
|
||||
if (!catset)
|
||||
return;
|
||||
|
||||
sap->flags |= NETLBL_SECATTR_MLS_CAT;
|
||||
|
|
Loading…
Reference in a new issue