From b7abfe5eca076c29a0d49a411320612264093bdf Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 4 May 2023 17:56:37 +0100 Subject: Avoid returning null when a config tag does not exist. This invokes undefined behaviour on modern compilers. --- include/config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index 2251d5566..f3d30559c 100644 --- a/include/config.h +++ b/include/config.h @@ -129,6 +129,9 @@ namespace Configuration std::map modules; Anope::map bots; + /* Represents a missing tag. */ + Block EmptyBlock; + Conf(); ~Conf(); -- cgit