cppcheck/samples/autoVariables/bad.c

13 lines
105 B
C

void foo(int **a)
{
int b = 1;
*a = &b;
}
int main()
{
int *c;
foo(&c);
return 0;
}