chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aba8b84
)
machine: fix -Wmaybe-uninitialized warning
author
Dave Reisner
<dreisner@archlinux.org>
Tue, 2 Jul 2013 17:50:00 +0000
(13:50 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Tue, 2 Jul 2013 17:50:54 +0000
(13:50 -0400)
The return value of machine_start_scope might be undefined if m->scope
is non-NULL.
src/machine/machine.c
patch
|
blob
|
history
diff --git
a/src/machine/machine.c
b/src/machine/machine.c
index f33ad54db84b01e28d8e674a62d2a81f3130a052..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);