I was working on a little project and came to a situation where the following happened:
std::string myString;
#GetValue() returns a char*
myString = myObject.GetValue();
My question is if GetValue()
returns NULL myString
becomes an empty string? Is it undefined? or it will segfault?