Initialize the struct array, and fix some -Wextra warnings