diff options
author | Sadie Powell <sadie@witchery.services> | 2023-05-04 17:56:37 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-05-04 19:21:02 +0100 |
commit | b7abfe5eca076c29a0d49a411320612264093bdf (patch) | |
tree | a8c8adaa95b0aff200b3567677b3da548ebc020c /include | |
parent | 23e7f5bd338cbb78ab3d990ba58064726de42abc (diff) |
Avoid returning null when a config tag does not exist.
This invokes undefined behaviour on modern compilers.
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<Anope::string, Block *> modules; Anope::map<Anope::string> bots; + /* Represents a missing tag. */ + Block EmptyBlock; + Conf(); ~Conf(); |