Useless code and missing array initializer