diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/module.c | 2 |
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 @@ -144,13 +144,13 @@ conf_notification_modules(struct notification *np) 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; |