Fix a minor potential issue found by PVS studio