summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/all/signalshared.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/all/signalshared.cxx b/sal/osl/all/signalshared.cxx
index a97dbd8e862c..816f20a2c808 100644
--- a/sal/osl/all/signalshared.cxx
+++ b/sal/osl/all/signalshared.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <cassert>
#include <sal/config.h>
#include <signalshared.hxx>
@@ -67,7 +68,7 @@ oslSignalAction callSignalHandler(oslSignalInfo* pInfo)
oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction handler, void* pData)
{
- assert(!handler);
+ assert(handler);
if (!handler)
return nullptr;
@@ -97,7 +98,7 @@ oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction handler,
sal_Bool SAL_CALL osl_removeSignalHandler(oslSignalHandler handler)
{
- assert(!handler);
+ assert(handler);
if (!bInitSignal)
bInitSignal = initSignal();