chiark / gitweb /
machine: fix -Wmaybe-uninitialized warning
authorDave Reisner <dreisner@archlinux.org>
Tue, 2 Jul 2013 17:50:00 +0000 (13:50 -0400)
committerDave 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

index f33ad54..d75c338 100644 (file)
@@ -221,7 +221,7 @@ static int machine_start_scope(Machine *m) {
         _cleanup_free_ char *description = NULL;
         DBusError error;
         char *job;
-        int r;
+        int r = 0;
 
         assert(m);