pfultz2/cppcheck

FP: Lifetime reassigning global variable

pfultz2 opened this issue · 0 comments

The following is not an error:

int * a;
void f() {
    int i = 0;
    a = &i;
    a = 0;
}