mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-16 09:06:45 +07:00
main: fix uninitialized variable
This commit is contained in:
parent
e564a98237
commit
b809bd0940
@ -1185,7 +1185,7 @@ static int do_switch_root(const char *switch_root) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (chroot(".") < 0)
|
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 */
|
/* FIXME: remove old root */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user