fix: Error being logged when no magic files are found
This commit is contained in:
parent
59b363d9b2
commit
8bdb39983e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user