[#2212] CID25773:

corrected equality check