Merge pull request #5 from pavel-pimenov/master

PVS-Studio fix