1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Error being logged when no magic files are found

This commit is contained in:
WerWolv 2023-11-24 11:28:37 +01:00
parent 59b363d9b2
commit 8bdb39983e

View File

@ -61,6 +61,9 @@ namespace hex::magic {
if (!magicFiles.has_value())
return false;
if (magicFiles->empty())
return true;
std::array<char, 1024> cwd = { 0x00 };
if (getcwd(cwd.data(), cwd.size()) == nullptr)
return false;