From 01b770e5f171a440f01cb9a9b2d974e9c8c82690 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Nov 2023 04:10:04 +0100 Subject: a --- loader/filesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'loader') diff --git a/loader/filesystem.cpp b/loader/filesystem.cpp index a7926da1..65878209 100644 --- a/loader/filesystem.cpp +++ b/loader/filesystem.cpp @@ -31,9 +31,10 @@ bool loader_impl::chdir(StringView pathname) #endif if (ret) { + auto error = errno; Error err; err << "chdir: can't change directory to" << pathname << Error::nospace << ":"; - Corrade::Utility::Implementation::printErrnoErrorString(err, errno); + Corrade::Utility::Implementation::printErrnoErrorString(err, error); } return !ret; } -- cgit v1.2.3