summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-02 14:43:57 +0000
committerSadie Powell <sadie@witchery.services>2025-03-02 14:43:57 +0000
commita5e5eb5eb084e8343260ce7bc26ea86798f64fe1 (patch)
treed2f2003ed347ae0d5ff0d3d826f05668b0843c93 /src
parent82aecd6c7eb2bb1b563ca21420d213f91311b1aa (diff)
Return EmptyBlock instead of NULL from GetModule.
Diffstat (limited to 'src')
-rw-r--r--src/config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 1f68ada50..47ce6feaa 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -623,7 +623,7 @@ void Conf::Post(Conf *old)
Block *Conf::GetModule(const Module *m)
{
if (!m)
- return NULL;
+ return &Block::EmptyBlock;
return GetModule(m->name);
}