quote:
Originally posted by feline
I am not sure why you are getting this suggestion here. I am seeing the same behaviour with your sample code, but at a guess the suggestion is going "not sure, but these two symbols are related". Given this, why remove a single star? What are you trying to do here? A manual cast?
Basically, something like this simplified example:
SForClause* iDbf_forClause_allocate(SForClause** tFor)
{
// Make sure our environment is sane
if (tFor)
{
// Allocate the new entry
*tFor = (SForClause*)malloc(sizeof(SForClause));
// Initialize it
if (*tFor)
memset(*tFor, 0, sizeof(SForClause));
// Return our pointer to indicate if it succeeded
return(*tFor);
}
return(NULL);
}