chiark / gitweb /
main: fix uninitialized variable
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 9 May 2012 09:20:06 +0000 (11:20 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 9 May 2012 09:20:35 +0000 (11:20 +0200)
src/core/main.c

index be9d0a6..8c25819 100644 (file)
@@ -1185,7 +1185,7 @@ static int do_switch_root(const char *switch_root) {
         }
 
         if (chroot(".") < 0)
-                log_warning("Failed to change root, ignoring: %s", strerror(-r));
+                log_warning("Failed to change root, ignoring: %m");
 
         /* FIXME: remove old root */