aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index 33946ee..ca1d471 100644
--- a/src/module.c
+++ b/src/module.c
@@ -138,25 +138,25 @@ modload(struct module *mod, lt_dladvise advise)
static int
conf_notification_modules(struct notification *np)
{
for (; np; np = np->next) {
if (np->modname) {
struct module *mod = modlookup(np->modname);
if (!mod) {
wy_log(LOG_ERR, "%s: no such module",
np->modname);
return 1;
}
- if (!np->modcfg && mod->config) {
+ if (!np->modcfg && mod->config && np->modnode) {
np->modcfg = mod->config(np->modnode);
if (!np->modcfg) {
wy_log(LOG_ERR,
"%s: failed to configure",
np->modname);
return 1;
}
}
}
}
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.