Weakness (CWE)
CWE-482: Comparing instead of Assigning
Variant Draft
The code uses an operator for comparison when the intention was to perform an assignment.
How to prevent it (1 mitigation)
-
Testing
Many IDEs and static analysis products will detect this problem.
Source: MITRE CWE-482
0 results · Clear filters · Feed
Nothing found.