Fixing a logic error where we would incorrectly show the newly crafted function not found error for a Python function in some cases where the function actually existed and had an empty docstring

llvm-svn: 164334
This commit is contained in:
Enrico Granata
2012-09-20 23:23:55 +00:00
parent 2cb5e527f6
commit eacb4911a0

View File

@@ -2555,9 +2555,10 @@ ScriptInterpreterPython::GetDocumentationForItem(const char* item, std::string&
if (ExecuteOneLineWithReturn (command.c_str(),
ScriptInterpreter::eScriptReturnTypeCharStrOrNone,
&result_ptr, false) && result_ptr)
&result_ptr, false))
{
dest.assign(result_ptr);
if (result_ptr)
dest.assign(result_ptr);
return true;
}
else