﻿# V7025\. It is possible that an assigned variable should be checked in the following condition\. Consider checking for a typo\.

The analyzer has detected a case where the variable may not be checked in the next if statement after an assignment or initialization\.

The example:

```cpp
let ret = foo(....)
if (ret != -1) { .... }
....
let ret2 = bar(....)
if (ret != -1) { .... }    // <=
```

Often, this may happen due to code copy\-pasting, when the variable name is not modified\. In this example, `ret` should be replaced with `ret2`\.

```cpp
let ret2 = bar(....)
if (ret2 != -1) { .... }
```