dovecot-2.2: push-notification: Allow drivers to set only "key" ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 2 09:12:32 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/67996a17e857
changeset: 19275:67996a17e857
user: Timo Sirainen <tss at iki.fi>
date: Fri Oct 02 12:10:41 2015 +0300
description:
push-notification: Allow drivers to set only "key" without "=value" to parameters.
diffstat:
src/plugins/push-notification/push-notification-drivers.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 5a64d5ea81e2 -r 67996a17e857 src/plugins/push-notification/push-notification-drivers.c
--- a/src/plugins/push-notification/push-notification-drivers.c Fri Oct 02 12:09:30 2015 +0300
+++ b/src/plugins/push-notification/push-notification-drivers.c Fri Oct 02 12:10:41 2015 +0300
@@ -66,9 +66,12 @@
p2 = strchr(*args, '=');
if (p2 != NULL) {
key = t_strdup_until(*args, p2);
- value = t_strdup(p2 + 1);
- hash_table_insert(config->config, key, value);
- }
+ value = t_strdup(p2 + 1);
+ } else {
+ key = *args;
+ value = "";
+ }
+ hash_table_insert(config->config, key, value);
}
return config;
More information about the dovecot-cvs
mailing list