diff --git a/src/common/notifications.cpp b/src/common/notifications.cpp index 544a7312..3f16f6c6 100644 --- a/src/common/notifications.cpp +++ b/src/common/notifications.cpp @@ -72,7 +72,7 @@ bool setup_libdbus() { do { \ lib##name = \ reinterpret_cast(dlsym(handle, #name)); \ - if (!(name)) { \ + if (!lib##name) { \ logger.log("Could not find '" + std::string(#name) + "' in '" + \ std::string(libdbus_library_name) + \ "', not sending desktop notifications"); \