diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-07-02 18:38:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-02 18:38:26 +0200 |
commit | f526ab7ef046d0e6d8923d4960903bcc807883fb (patch) | |
tree | 500110ef7d113d6d690f327146149582bf9c43a7 /src/machine/machine.c | |
parent | cf1265e188e876dda906dca0029248a06dc80c33 (diff) |
machine: fix scope allocation
Diffstat (limited to 'src/machine/machine.c')
-rw-r--r-- | src/machine/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c index 8e03ff2ec1..f33ad54db8 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -236,12 +236,12 @@ static int machine_start_scope(Machine *m) { return log_oom(); scope = strjoin("machine-", escaped, ".scope", NULL); - if (scope) + if (!scope) return log_oom(); description = strappend(m->class == MACHINE_VM ? "Virtual Machine " : "Container ", m->name); - r = manager_start_scope(m->manager, m->scope, m->leader, SPECIAL_MACHINE_SLICE, description, &error, &job); + r = manager_start_scope(m->manager, scope, m->leader, SPECIAL_MACHINE_SLICE, description, &error, &job); if (r < 0) { log_error("Failed to start machine scope: %s", bus_error(&error, r)); dbus_error_free(&error); |