Fix The left operand of '!=' is a garbage value issue found by Clang Analyzer