Avoid 0 sized VLAs.
Merge pull request #960 from ktf/zero-sized-vla

Misc fixes -- Zero sized VLA