]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
push-notification: PUSH_NOTIFICATION_USER_CONTEXT is now required
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 23 Jan 2018 08:51:26 +0000 (10:51 +0200)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 24 Jan 2018 11:24:32 +0000 (13:24 +0200)
Satisfies static analyzers

src/plugins/push-notification/push-notification-plugin.c

index 2ab78a7f8992a63daab7a7ff76f768c305692d3f..067cb7e0589d3d6da33c6df92e277318a9fe5536 100644 (file)
@@ -22,7 +22,7 @@
 #define PUSH_NOTIFICATION_CONFIG_OLD "push_notification_backend"
 
 #define PUSH_NOTIFICATION_USER_CONTEXT(obj) \
-        MODULE_CONTEXT(obj, push_notification_user_module)
+        MODULE_CONTEXT_REQUIRE(obj, push_notification_user_module)
 static MODULE_CONTEXT_DEFINE_INIT(push_notification_user_module,
                                   &mail_user_module_register);
 static struct ioloop *main_ioloop;