Enable Wall & Wextra - must have accidentally removed them.
Correct crash. Missing return statement.