summaryrefslogtreecommitdiffstats
path: root/src/python/pyhbac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/pyhbac.c')
-rw-r--r--src/python/pyhbac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/pyhbac.c b/src/python/pyhbac.c
index c46f7c6b3..f3aaa60f0 100644
--- a/src/python/pyhbac.c
+++ b/src/python/pyhbac.c
@@ -794,7 +794,7 @@ hbac_rule_set_enabled(HbacRuleObject *self, PyObject *enabled, void *closure)
Py_DECREF(utf8_str);
return 0;
- } else if (PyBool_Check(enabled)) {
+ } else if (PyBool_Check(enabled) == true) {
self->enabled = (enabled == Py_True);
return 0;
} else if (PYNUMBER_CHECK(enabled)) {