aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------grecs0
-rw-r--r--modules/mailutils/mod_mailutils.c2
-rw-r--r--src/module.c2
-rw-r--r--tests/notify-upl.at2
4 files changed, 3 insertions, 3 deletions
diff --git a/grecs b/grecs
Subproject 57a00b140954a2c22ba2fdebc93e8e6eda41b2a Subproject 477701c059d73e47aa1bac97e96d801542f2bd8
diff --git a/modules/mailutils/mod_mailutils.c b/modules/mailutils/mod_mailutils.c
index ae437ff..f705168 100644
--- a/modules/mailutils/mod_mailutils.c
+++ b/modules/mailutils/mod_mailutils.c
@@ -596,7 +596,7 @@ void *
596wy_config(grecs_node_t *node) 596wy_config(grecs_node_t *node)
597{ 597{
598 int i; 598 int i;
599 struct mailevt *evt = grecs_malloc(sizeof(*evt)); 599 struct mailevt *evt = grecs_zalloc(sizeof(*evt));
600 600
601 for (i = 0; notify_event_kw[i].ident; i++) 601 for (i = 0; notify_event_kw[i].ident; i++)
602 notify_event_kw[i].varptr = evt; 602 notify_event_kw[i].varptr = evt;
diff --git a/src/module.c b/src/module.c
index 33946ee..ca1d471 100644
--- a/src/module.c
+++ b/src/module.c
@@ -147,7 +147,7 @@ conf_notification_modules(struct notification *np)
147 np->modname); 147 np->modname);
148 return 1; 148 return 1;
149 } 149 }
150 if (!np->modcfg && mod->config) { 150 if (!np->modcfg && mod->config && np->modnode) {
151 np->modcfg = mod->config(np->modnode); 151 np->modcfg = mod->config(np->modnode);
152 if (!np->modcfg) { 152 if (!np->modcfg) {
153 wy_log(LOG_ERR, 153 wy_log(LOG_ERR,
diff --git a/tests/notify-upl.at b/tests/notify-upl.at
index 2c60c90..ab69e4f 100644
--- a/tests/notify-upl.at
+++ b/tests/notify-upl.at
@@ -15,7 +15,7 @@
15# along with Wydawca. If not, see <http://www.gnu.org/licenses/>. 15# along with Wydawca. If not, see <http://www.gnu.org/licenses/>.
16 16
17AT_SETUP([Simple upload and notification]) 17AT_SETUP([Simple upload and notification])
18AT_KEYWORDS([notify]) 18AT_KEYWORDS([notify notify-upl])
19 19
20AT_DATA([errtmpl], 20AT_DATA([errtmpl],
21[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started 21[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started

Return to:

Send suggestions and report system problems to the System administrator.