summaryrefslogtreecommitdiff
path: root/src/shared/condition.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-11 12:58:41 -0500
committerLennart Poettering <lennart@poettering.net>2016-11-11 18:58:41 +0100
commitc58bd76a6af673196ad283131cbe3edcf2bf6291 (patch)
treef6e10c3e79cd25b9eca6be7b2fa024ef009a29b5 /src/shared/condition.c
parent5f36e3d30375cf04292bbc1bf3f4d7512cf80139 (diff)
tree-wide: make invocations of extract_first_word more uniform (#4627)
extract_first_words deals fine with the string being NULL, so drop the upfront check for that.
Diffstat (limited to 'src/shared/condition.c')
-rw-r--r--src/shared/condition.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/condition.c b/src/shared/condition.c
index 8bd6a51a99..525e65aedf 100644
--- a/src/shared/condition.c
+++ b/src/shared/condition.c
@@ -111,9 +111,8 @@ static int condition_test_kernel_command_line(Condition *c) {
return r;
equal = !!strchr(c->parameter, '=');
- p = line;
- for (;;) {
+ for (p = line;;) {
_cleanup_free_ char *word = NULL;
bool found;