Actually load magic data

This commit is contained in:
TheAssassin
2018-06-03 03:17:15 +02:00
parent 88a62ff2a7
commit f2dc908b18

View File

@@ -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() {