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 be9d0a60e1ce49d11f8eebba2d834b038d406bea..8c25819a120e1870cad9ea84dff23d2316487a11 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 */