Skip to content

Commit

Permalink
Merge pull request #761 from qnet-herwin/rlm_perl_config_code_cleanup
Browse files Browse the repository at this point in the history
Small code cleanup in rlm_perl config parser
  • Loading branch information
arr2036 committed Aug 12, 2014
2 parents 9ec08f3 + 71018fc commit 42eb72e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/rlm_perl/rlm_perl.c
Expand Up @@ -385,11 +385,9 @@ static void perl_parse_config(CONF_SECTION *cs, int lvl, HV *rad_hv)

DEBUG("%*s%s {", indent_section, " ", cf_section_name1(cs));

CONF_ITEM *ci;
CONF_ITEM *ci = NULL;

for (ci = cf_item_find_next(cs, NULL);
ci;
ci = cf_item_find_next(cs, ci)) {
while ((ci = cf_item_find_next(cs, ci))) {
/*
* This is a section.
* Create a new HV, store it as a reference in current HV,
Expand Down

0 comments on commit 42eb72e

Please sign in to comment.