Fixing a logic error where we would incorrectly show the newly crafted function not...
authorEnrico Granata <egranata@apple.com>
Thu, 20 Sep 2012 23:23:55 +0000 (23:23 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 20 Sep 2012 23:23:55 +0000 (23:23 +0000)
llvm-svn: 164334

lldb/source/Interpreter/ScriptInterpreterPython.cpp

index d085873..b069bf4 100644 (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