X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=73faa506fb5387572ff91e4a030c6fe9e0351b3d;hb=64c5dc9eb67132d8a943edfcd248fd161131ff3d;hp=d066501cdcba73afb56363dae167b9dd78353e10;hpb=9343b7456d7b846f657a1d0566cb6732f0f2ea50;p=collectd.git 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'. */