A
Alf P. Steinbach
* HP:
Post the smallest possible complete program that exhibits this problem.
Also, does the following program,
int main()
{
int* p = new int;
*p = 42;
delete p;
}
generate any warning?
Possible use of null pointer 'PnoSytGenericTest::_response' in
left argument to operator '->'
void PnoSytGenericTest::initResponse()
{
ENTER_METHOD("SYT_TEST_MGR", PnoSytGenericTest::initResponse);
_response = new AcdMessage();
_response->header(_data->header());
(_response->header()).cmdId[0].cmdId = Acd::CMD_RSP;
RETURN_METHOD("SYT_TEST_MGR");
}
Post the smallest possible complete program that exhibits this problem.
Also, does the following program,
int main()
{
int* p = new int;
*p = 42;
delete p;
}
generate any warning?