X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=73faa506fb5387572ff91e4a030c6fe9e0351b3d;hb=55832a2197b65223bbfaff233dab755384c33a86;hp=d066501cdcba73afb56363dae167b9dd78353e10;hpb=37676c3b280e15df8efbef2a3dc6c9096d1ae03b;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'. */