style: remove unnecessary break statements
style: reduce variable scope
Merge pull request #20 from yegorich/cppcheck

Cppcheck
0.6.3