use the ++.

git-svn-id: file:///svn/unbound/trunk@2597 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2012-01-26 10:46:14 +00:00
parent b54efa5c69
commit 71e85ee6fb

View file

@ -417,8 +417,7 @@ int config_set_option(struct config_file* cfg, const char* opt,
memmove(oi, cfg->out_ifs, cfg->num_out_ifs*sizeof(char*));
free(cfg->out_ifs);
}
oi[cfg->num_out_ifs] = d;
cfg->num_out_ifs++;
oi[cfg->num_out_ifs++] = d;
cfg->out_ifs = oi;
} else {
/* unknown or unsupported (from the set_option interface):