From: Michal Schmidt Date: Wed, 9 May 2012 09:20:06 +0000 (+0200) Subject: main: fix uninitialized variable X-Git-Tag: v183~129 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b809bd0940b3c12d49cfc79d2a2c1a449b3dcf50;p=systemd main: fix uninitialized variable --- diff --git a/src/core/main.c b/src/core/main.c index be9d0a60..8c25819a 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 */