Merge "Fix the bound size and the variable name"
This commit is contained in:
commit
5791e6eeeb
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ static rule_map *rule_map_new(kvp keys[], size_t num_of_keys, int lineno,
|
|||
|
||||
/* Only assign key name to map name */
|
||||
if (strcasecmp(k->key, x->name)) {
|
||||
if (i == KVP_NUM_OF_RULES) {
|
||||
if (j == KVP_NUM_OF_RULES - 1) {
|
||||
log_error("No match for key: %s\n", k->key);
|
||||
goto err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue