cppcheck/samples/autoVariables/bad.c

13 lines
92 B
C

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