X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fcondition.c;h=db12df952b143aa8bf4e36528fd9763e5e1c7c8d;hp=f34b45f2a9cff97ec2e32bbf80e263ed2381242c;hb=01c94c5d0aff09b4c0e429d483c8eeba40017071;hpb=2eec67acbb00593e414549a7e5b35eb7dd776b1b diff --git a/src/shared/condition.c b/src/shared/condition.c index f34b45f2a..db12df952 100644 --- 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) @@ -100,7 +100,7 @@ static int condition_test_kernel_command_line(Condition *c) { _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)