Compiler ignores code returning a local char* from a function
<p>As far as I know the following code is bad. But, Visual Studio 2010 doesn't give me any warning.</p>

<pre><code>char* CEmployee::GetEmployeeName()
{
  char* szEmployeeName = "";
  CEmployeeModel* model = GetSwitchMod();
  if (model != NULL)
  {
    szEmployeeName = model-&gt;GetName();
  }

  return szEmployeeName; 
}  
</code></pre>
