mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Don't use !! but != 0/NULL to force boolean evaluation.
I introduced several uses of !! to force bit arithmetic to be boolean, but per discussion the project prefers != 0/NULL. Discussion: CA+TgmoZP5KakLGP6B4vUjgMBUW0woq_dJYi0paOz-My0Hwt_vQ@mail.gmail.com
This commit is contained in:
@ -407,7 +407,7 @@ sepgsql_avc_check_perms_label(const char *tcontext,
|
||||
audit_name != SEPGSQL_AVC_NOAUDIT &&
|
||||
sepgsql_get_mode() != SEPGSQL_MODE_INTERNAL)
|
||||
{
|
||||
sepgsql_audit_log(!!denied,
|
||||
sepgsql_audit_log(denied != 0,
|
||||
cache->scontext,
|
||||
cache->tcontext_is_valid ?
|
||||
cache->tcontext : sepgsql_avc_unlabeled(),
|
||||
|
Reference in New Issue
Block a user