Comparing instead of Assigning
CWE-482 · Variant · Draft
The code uses an operator for comparison when the intention was to perform an assignment.
Extended description
In many languages, the compare statement is very close in appearance to the assignment statement.
they are often confused.