mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix spdlog crash
Pass a reference to a variable with a wider scope.
This commit is contained in:
@@ -73,7 +73,8 @@ uint32_t GetCrc32(const std::filesystem::path& filename) {
|
||||
|
||||
uint32_t checksum = result.checksum();
|
||||
if (logger) {
|
||||
logger->debug("CRC32(\"{}\"): {:x}", filename.u8string(), checksum);
|
||||
auto u8Filename = filename.u8string();
|
||||
logger->debug("CRC32(\"{}\"): {:x}", u8Filename, checksum);
|
||||
}
|
||||
return checksum;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user