ini_parser: remove redundant parameter.

This commit is contained in:
sorgelig
2019-08-31 16:17:13 +08:00
parent 47400adef6
commit 20b52ee346
3 changed files with 32 additions and 33 deletions

View File

@@ -131,7 +131,7 @@ void* ini_get_var(const ini_cfg_t* cfg, int cur_section, char* buf)
// parse var
for (j = 0; j<cfg->nvars; j++) {
if ((!strcasecmp(buf, cfg->vars[j].name)) && (cfg->vars[j].section_id == cur_section)) var_id = j;
if (!strcasecmp(buf, cfg->vars[j].name) && cur_section) var_id = j;
}
// get data