From: Pascal Hofmann Date: Thu, 14 Jun 2012 19:54:47 +0000 (+0200) Subject: Fix for config file parsing ("memcachec plugin: Option `Server' not allowed here.") X-Git-Tag: collectd-5.0.5~7^2~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=64c5dc9eb67132d8a943edfcd248fd161131ff3d;p=collectd.git Fix for config file parsing ("memcachec plugin: Option `Server' not allowed here.") --- diff --git a/src/memcachec.c b/src/memcachec.c index d066501c..73faa506 100644 --- 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'. */