From b809bd0940b3c12d49cfc79d2a2c1a449b3dcf50 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Wed, 9 May 2012 11:20:06 +0200 Subject: [PATCH] main: fix uninitialized variable --- src/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5