[Lldb-commits] [lldb] r137407 - /lldb/trunk/source/Core/RegisterValue.cpp

Johnny Chen johnny.chen at apple.com
Thu Aug 11 18:22:56 PDT 2011


Author: johnny
Date: Thu Aug 11 20:22:56 2011
New Revision: 137407

URL: http://llvm.org/viewvc/llvm-project?rev=137407&view=rev
Log:
Fix a logic error caught by the static analyzer.

Modified:
    lldb/trunk/source/Core/RegisterValue.cpp

Modified: lldb/trunk/source/Core/RegisterValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/RegisterValue.cpp?rev=137407&r1=137406&r2=137407&view=diff
==============================================================================
--- lldb/trunk/source/Core/RegisterValue.cpp (original)
+++ lldb/trunk/source/Core/RegisterValue.cpp Thu Aug 11 20:22:56 2011
@@ -373,7 +373,7 @@
         return error;
     }
 
-    if (value_str == NULL && value_str[0] == '\0')
+    if (value_str == NULL || value_str[0] == '\0')
     {
         error.SetErrorString ("Invalid c-string value string.");
         return error;





More information about the lldb-commits mailing list