Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On count == 1, the winner gets set to the first element, true. But the function does not return yet! So the value might get overwritten during the remainder of the for-loop.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: