chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udev: builtin-keyboard: add support for EVDEV_ABS_*
[elogind.git]
/
src
/
shared
/
condition.c
diff --git
a/src/shared/condition.c
b/src/shared/condition.c
index f34b45f2a9cff97ec2e32bbf80e263ed2381242c..db12df952b143aa8bf4e36528fd9763e5e1c7c8d 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(type >= 0);
assert(type < _CONDITION_TYPE_MAX);
- assert(
!parameter
== (type == CONDITION_NULL));
+ assert(
(!parameter)
== (type == CONDITION_NULL));
c = new0(Condition, 1);
if (!c)
c = new0(Condition, 1);
if (!c)
@@
-100,7
+100,7
@@
static int condition_test_kernel_command_line(Condition *c) {
_cleanup_free_ char *word = NULL;
bool found;
_cleanup_free_ char *word = NULL;
bool found;
- r = unquote_first_word(&p, &word,
true
);
+ r = unquote_first_word(&p, &word,
UNQUOTE_RELAX
);
if (r < 0)
return r;
if (r == 0)
if (r < 0)
return r;
if (r == 0)