chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add tests for string lookup tables
[elogind.git]
/
src
/
machine
/
machine.c
diff --git
a/src/machine/machine.c
b/src/machine/machine.c
index 8e03ff2ec1eaa5942ffdb5426325f94989617e0c..d75c3381890626268559d9831e4aede0fef33951 100644
(file)
--- a/
src/machine/machine.c
+++ b/
src/machine/machine.c
@@
-221,7
+221,7
@@
static int machine_start_scope(Machine *m) {
_cleanup_free_ char *description = NULL;
DBusError error;
char *job;
_cleanup_free_ char *description = NULL;
DBusError error;
char *job;
- int r;
+ int r
= 0
;
assert(m);
assert(m);
@@
-236,12
+236,12
@@
static int machine_start_scope(Machine *m) {
return log_oom();
scope = strjoin("machine-", escaped, ".scope", NULL);
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);
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);
if (r < 0) {
log_error("Failed to start machine scope: %s", bus_error(&error, r));
dbus_error_free(&error);