From: Wouter Wijngaards Date: Thu, 26 Jan 2012 10:46:14 +0000 (+0000) Subject: use the ++. X-Git-Tag: release-1.4.16~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e85ee6fbe04a687b1cee0ecd50b3a12bc68bd5;p=thirdparty%2Funbound.git use the ++. git-svn-id: file:///svn/unbound/trunk@2597 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/config_file.c b/util/config_file.c index 21d6d1965..41ae87e9c 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -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):