From 64c5dc9eb67132d8a943edfcd248fd161131ff3d Mon Sep 17 00:00:00 2001 From: Pascal Hofmann Date: Thu, 14 Jun 2012 21:54:47 +0200 Subject: [PATCH] Fix for config file parsing ("memcachec plugin: Option `Server' not allowed here.") --- src/memcachec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'. */ -- 2.11.0