cppcheck/samples/autoVariables/bad.c

12 lines
91 B
C
Raw Normal View History

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