Follow-up to bug 784739 - Compare a char against a numeric value, not nullptr
☠☠ backed out by 84588077a188 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 02 Apr 2013 22:11:11 -0400
changeset 127135 06ae36377cfa
parent 127134 7201a22e3c44
child 127136 84588077a188
push id117
push usertomi.aarnio@nokia.com
push dateWed, 03 Apr 2013 12:07:07 +0000
bugs784739
milestone23.0a1
Follow-up to bug 784739 - Compare a char against a numeric value, not nullptr Landed on a CLOSED TREE
browser/app/nsBrowserApp.cpp
--- a/browser/app/nsBrowserApp.cpp
+++ b/browser/app/nsBrowserApp.cpp
@@ -344,17 +344,17 @@ static int do_main(int argc, char* argv[
       // Build new args array
       char* newArgv[20];
       int newArgc = 1;
 
       memset(newArgv, 0, sizeof(newArgv));
 
       char* ptr = buffer;
       newArgv[0] = ptr;
-      while (*ptr != nullptr &&
+      while (*ptr != 0 &&
              (ptr - buffer) < sizeof(buffer) &&
              newArgc < ARRAYSIZE(newArgv)) {
         if (isspace(*ptr)) {
           *ptr = '\0';
           ptr++;
           // Check for the console id the metrotestharness passes in, we need
           // to connect up to this so test output goes to the right place.
           if (ptr && !strncmp(ptr, kMetroConsoleIdParam, strlen(kMetroConsoleIdParam))) {