mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-07-02 20:08:02 -05:00
Actually load magic data
This commit is contained in:
@@ -18,6 +18,10 @@ namespace linuxdeploy {
|
||||
|
||||
if (cookie == nullptr)
|
||||
throw MagicError("Failed to open magic database: " + std::string(magic_error(cookie)));
|
||||
|
||||
// load magic data from default location
|
||||
if (magic_load(cookie, nullptr) != 0)
|
||||
throw MagicError("Failed to load magic data: " + std::string(magic_error(cookie)));
|
||||
}
|
||||
|
||||
~PrivateData() {
|
||||
|
||||
Reference in New Issue
Block a user