If we have coldplugged services, but no start_services, we need to create a new list for start_services.
This commit is contained in:
parent
4f4b74e110
commit
3f37d4771b
@ -1179,11 +1179,10 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (coldplugged_services) {
|
if (coldplugged_services) {
|
||||||
if (start_services) {
|
if (!start_services)
|
||||||
TAILQ_FOREACH(service, coldplugged_services, entries)
|
start_services = rc_stringlist_new();
|
||||||
rc_stringlist_addu(start_services, service->value);
|
TAILQ_FOREACH(service, coldplugged_services, entries)
|
||||||
} else
|
rc_stringlist_addu(start_services, service->value);
|
||||||
start_services = coldplugged_services;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user