Possible dynamic array dimension fix (bug 4428, r=dvander)

This commit is contained in:
Fyren 2010-06-19 15:17:10 -07:00
parent 47c840c9b4
commit d9e818e5d9

View File

@ -2341,7 +2341,10 @@ static int declloc(int fstatic)
stradjust(sPRI);
}
pushreg(sPRI);
/* No idea why this is here, but it throws away dimension info which
would otherwise be used by addvariable2 below.
memset(dim, 0, sizeof(int)*sDIMEN_MAX);
*/
ident = iREFARRAY;
genarray(numdim, autozero);
}