chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shared/condition: fix gcc5 warning
[elogind.git]
/
src
/
shared
/
condition.c
diff --git
a/src/shared/condition.c
b/src/shared/condition.c
index f34b45f2a9cff97ec2e32bbf80e263ed2381242c..0a77607eeaa1e5244d4bf6964ae97cdfbdb1630e 100644
(file)
--- a/
src/shared/condition.c
+++ b/
src/shared/condition.c
@@
-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)