Fix warning for ignored return value for getline()