X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=c57a831226d4da64691922a7a43983c5b37eeee1;hb=204cf4f8f68cadeac474a75584f27b7339aca4c4;hp=8f51e22f01dd3c2d728d0cbc0a8e2cc61fba99e1;hpb=483e801902bca3c779793224eddf3bb2749d7288;p=collectd.git diff --git a/src/memcachec.c b/src/memcachec.c index 8f51e22f..c57a8312 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'. */