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 f33ad54db84b01e28d8e674a62d2a81f3130a052..d75c3381890626268559d9831e4aede0fef33951 100644 (file)
@@ -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);