The code uses an operator for assignment when the intention was to perform a comparison.
Many IDEs and static analysis products will detect this problem.
Place constants on the left. If one attempts to assign a constant with a variable, the compiler will produce an error.
Our security experts can help you identify and remediate CWE-481 vulnerabilities in your codebase.
Get Security Assessment