Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 3, 2015
1 parent 4054756 commit ee7413f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/conffile.c
Expand Up @@ -1129,11 +1129,18 @@ int cf_item_parse(CONF_SECTION *cs, char const *name, unsigned int type, void *d
rcode = 0;

cp = cf_pair_find(cs, name);
if (cp) {
value = cp->value;
} else {
/*
* No pairs match the configuration item name in the current
* section, use the default value.
*/
if (!cp) {
rcode = 1;
value = dflt;
/*
* Something matched, used the CONF_PAIR value.
*/
} else {
value = cp->value;
}

if (!value) {
Expand Down

0 comments on commit ee7413f

Please sign in to comment.