frontend/ftesopt.c, shrink scope of local variables

This commit is contained in:
rlar 2016-03-25 12:45:47 +01:00
parent 413ae5784c
commit a98dde245c
1 changed files with 4 additions and 2 deletions

View File

@ -35,11 +35,11 @@ struct variable *
ft_getstat(struct circ *ci, char *name)
{
int i;
struct variable *v, *vars , *vv = NULL;
if (name) {
for (i = 0; i < FTEOPTcount; i++)
if (eq(name, FTEOPTtbl[i].keyword)) {
struct variable *vv;
vv = getFTEstat(FTEOPTtbl + i, ci->FTEstats);
if (vv) {
vv->va_type = FTEOPTtbl[i].dataType;
@ -52,7 +52,9 @@ ft_getstat(struct circ *ci, char *name)
}
return (NULL);
} else {
for (vars = NULL, i = FTEOPTcount; --i >= 0;) {
struct variable *vars = NULL;
for (i = FTEOPTcount; --i >= 0;) {
struct variable *v;
v = getFTEstat(FTEOPTtbl + i, ci->FTEstats);
v->va_next = vars;
vars = v;