c99 style in loop

This commit is contained in:
Nick Mathewson 2018-09-04 11:04:55 -04:00
parent 3507fead10
commit 1e71e2c104

View File

@ -124,8 +124,7 @@ tor_main_configuration_free(tor_main_configuration_t *cfg)
if (cfg == NULL)
return;
if (cfg->argv_owned) {
int i;
for (i = 0; i < cfg->argc_owned; ++i) {
for (int i = 0; i < cfg->argc_owned; ++i) {
raw_free(cfg->argv_owned[i]);
}
raw_free(cfg->argv_owned);