chiark / gitweb /
shared/condition: fix gcc5 warning
[elogind.git] / src / shared / condition.c
index f34b45f2a9cff97ec2e32bbf80e263ed2381242c..0a77607eeaa1e5244d4bf6964ae97cdfbdb1630e 100644 (file)
@@ -44,7 +44,7 @@ Condition* condition_new(ConditionType type, const char *parameter, bool trigger
 
         assert(type >= 0);
         assert(type < _CONDITION_TYPE_MAX);
-        assert(!parameter == (type == CONDITION_NULL));
+        assert((!parameter) == (type == CONDITION_NULL));
 
         c = new0(Condition, 1);
         if (!c)