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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-11-11 18:58:41 +01:00
committed by Lennart Poettering
parent 5f36e3d303
commit c58bd76a6a
7 changed files with 40 additions and 72 deletions
+1 -2
View File
@@ -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;