Skip to content

Commit

Permalink
use correct logic for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jul 22, 2019
1 parent fab1090 commit 20b4351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/server/cf_file.c
Expand Up @@ -1376,6 +1376,7 @@ static int cf_section_read(char const *filename, int *lineno, FILE *fp,
css->argc++;
}

in_map = true;
goto add_section;
}

Expand Down Expand Up @@ -1635,8 +1636,7 @@ static int cf_section_read(char const *filename, int *lineno, FILE *fp,
* should really be put into a parser
* struct, as with tmpls.
*/
if (!in_update) in_update = (strcmp(css->name1, "update") == 0);
if (!in_map) in_map = (strcmp(css->name1, "map") == 0);
if (!in_map && !in_update) in_update = (strcmp(css->name1, "update") == 0);
break;

case T_INVALID:
Expand Down

0 comments on commit 20b4351

Please sign in to comment.