frontend/device.c, com_alter_common(), #5/11 cleanup `i' usage

This commit is contained in:
rlar 2015-12-26 18:59:52 +01:00
parent 247767e3bf
commit 88fa0bc8d2
1 changed files with 2 additions and 3 deletions

View File

@ -1335,9 +1335,8 @@ com_alter_common(wordlist *wl, int do_model)
if (error)
break;
/*printf(" returning vector value %g\n", tmp); */
i++;
list = TREALLOC(double, list, i);
list[i-1] = tmp;
list = TREALLOC(double, list, i + 1);
list[i++] = tmp;
}
dv->v_realdata = list;
}