projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9343b74
)
Fix for config file parsing ("memcachec plugin: Option `Server' not allowed here.")
author
Pascal Hofmann
<mail@pascalhofmann.de>
Thu, 14 Jun 2012 19:54:47 +0000
(21:54 +0200)
committer
Florian Forster
<octo@collectd.org>
Wed, 27 Jun 2012 19:18:44 +0000
(21:18 +0200)
src/memcachec.c
patch
|
blob
|
history
diff --git
a/src/memcachec.c
b/src/memcachec.c
index
d066501
..
73faa50
100644
(file)
--- a/
src/memcachec.c
+++ b/
src/memcachec.c
@@
-328,7
+328,7
@@
static int cmc_config_add_page (oconfig_item_t *ci) /* {{{ */
if (strcasecmp ("Server", child->key) == 0)
status = cmc_config_add_string ("Server", &page->server, child);
- if (strcasecmp ("Key", child->key) == 0)
+
else
if (strcasecmp ("Key", child->key) == 0)
status = cmc_config_add_string ("Key", &page->key, child);
else if (strcasecmp ("Match", child->key) == 0)
/* Be liberal with failing matches => don't set `status'. */