From 22a353b8e3402f814b3f88719e3ecda8672700bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Aug 2016 12:40:16 +0200 Subject: [PATCH] event/SignalMonitor: fix obsolete nullptr check in SignalCallback() --- src/event/SignalMonitor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/SignalMonitor.cxx b/src/event/SignalMonitor.cxx index 77ae975a9..19b2a5fe3 100644 --- a/src/event/SignalMonitor.cxx +++ b/src/event/SignalMonitor.cxx @@ -115,7 +115,7 @@ at_fork_child() static void SignalCallback(int signo) { - assert(signal_handlers[signo] != nullptr); + assert(signal_handlers[signo]); if (!signal_pending[signo].exchange(true)) monitor->WakeUp();