coverity#17875 Assign instead of compare