main: fix uninitialized variable

This commit is contained in:
Michal Schmidt 2012-05-09 11:20:06 +02:00
parent e564a98237
commit b809bd0940

View 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 */