invalid char ptr



Hi

i am getting "invalid char ptr" error while debugging code in AIX51.

After executing the

if ( (var = (char *) malloc( (size_t)datalen + 1 )) == NULL ) statement

when i do print "var" , it prints "invalid char ptr (0xxxx...)).

Any pointers....

Thanks,
V..

.