Accidentally declared array of size 0 rather than 1 as intended