mirror of
https://github.com/polybar/polybar.git
synced 2025-04-14 17:33:17 -04:00
refactor(plugin): Add missing braces to if statement.
This commit is contained in:
parent
d8687e2a3a
commit
01891e0567
1 changed files with 2 additions and 1 deletions
|
@ -21,8 +21,9 @@ std::vector<const char*> plugin_names = {
|
|||
|
||||
plugin_handle::plugin_handle(const char* libname) {
|
||||
m_handle = ::dlopen(libname, RTLD_NOW | RTLD_GLOBAL);
|
||||
if (!m_handle)
|
||||
if (!m_handle) {
|
||||
throw application_error(::dlerror());
|
||||
}
|
||||
}
|
||||
|
||||
plugin_handle::~plugin_handle() {
|
||||
|
|
Loading…
Add table
Reference in a new issue