Some cleanups found by clang's analyzer
This commit is contained in:
@@ -18,7 +18,7 @@ namespace chaiscript
|
||||
DLModule(const std::string &t_filename)
|
||||
: m_data(dlopen(t_filename.c_str(), RTLD_NOW))
|
||||
{
|
||||
if (!m_data)
|
||||
if (m_data == nullptr)
|
||||
{
|
||||
throw chaiscript::exception::load_module_error(dlerror());
|
||||
}
|
||||
|
Reference in New Issue
Block a user