int test_malloc(void **ptr, size_t size)
{
(*ptr) = malloc(size);
return 0;
}
int test_app()
{
char *data = NULL;
int ret = 0;
ret = test_malloc((void **)&data, 100);
}
Compiler: gcc 4.1.2
Among others, I am using -O2 & -Wall which are I think are turning on some options which checks for this.