[Lldb-commits] [lldb] r184216 - Fix a missing pointer deref that was uncovered by one of the buildbots.

Adrian Prantl aprantl at apple.com
Tue Jun 18 11:24:04 PDT 2013


Author: adrian
Date: Tue Jun 18 13:24:04 2013
New Revision: 184216

URL: http://llvm.org/viewvc/llvm-project?rev=184216&view=rev
Log:
Fix a missing pointer deref that was uncovered by one of the buildbots.

Modified:
    lldb/trunk/source/Interpreter/Args.cpp

Modified: lldb/trunk/source/Interpreter/Args.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Args.cpp?rev=184216&r1=184215&r2=184216&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Args.cpp (original)
+++ lldb/trunk/source/Interpreter/Args.cpp Tue Jun 18 13:24:04 2013
@@ -231,7 +231,7 @@ Args::SetCommandString (const char *comm
                             if (quote_char == '\0')
                             {
                                 arg.append (arg_piece_start, arg_end - arg_piece_start);
-                                if (arg_end + 1 != '\0')
+                                if (arg_end[1] != '\0')
                                 {
                                     arg.append (arg_end + 1, 1);
                                     arg_pos = arg_end + 2;





More information about the lldb-commits mailing list