From 77ebbe452844438beb9e841f7e7bf349c6e397fd Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 2 Apr 2021 12:53:49 -0700 Subject: [PATCH] ircd::cl: Use non-throwing zero value for profile call when disabled. --- ircd/cl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ircd/cl.cc b/ircd/cl.cc index 850001283..99be02bde 100644 --- a/ircd/cl.cc +++ b/ircd/cl.cc @@ -1448,6 +1448,9 @@ const cl_event(this->handle) }; + if(!profile_queue || !handle) + return {0}; + char buf[4][8]; return std::array {