X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fcondition.c;h=db12df952b143aa8bf4e36528fd9763e5e1c7c8d;hb=7168106367493a7610a4c06634725c40a3548be0;hp=f34b45f2a9cff97ec2e32bbf80e263ed2381242c;hpb=2eec67acbb00593e414549a7e5b35eb7dd776b1b;p=elogind.git 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)