summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-05-09 11:20:06 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-05-09 11:20:35 +0200
commitb809bd0940b3c12d49cfc79d2a2c1a449b3dcf50 (patch)
treee5fcb28e89491ff4022be0a50c24585eec034420
parente564a98237817d8c89f7979856a87d3788988742 (diff)
main: fix uninitialized variable
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index be9d0a60e1..8c25819a12 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -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 */