Fix local() and global() allocation bug
Fix local() and global() allocation bug

The number of records were not stored in the variables for them,
so the allocation was always done, generating a segmentation fault
in some cases.

8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/kcc,k0gaMSX/scc