From a5e5eb5eb084e8343260ce7bc26ea86798f64fe1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 2 Mar 2025 14:43:57 +0000 Subject: [PATCH] Return EmptyBlock instead of NULL from GetModule. --- src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }