Remove unnecessary variable.
Do not use variable length arrays here.