Follow-up to bug 784739 - Compare a char against a numeric value, not nullptr

Landed on a CLOSED TREE
This commit is contained in:
Ehsan Akhgari 2013-04-02 22:11:11 -04:00
parent 61ecbdc263
commit 547914cd05

View File

@ -349,7 +349,7 @@ static int do_main(int argc, char* argv[], nsIFile *xreDirectory)
char* ptr = buffer;
newArgv[0] = ptr;
while (*ptr != nullptr &&
while (*ptr != 0 &&
(ptr - buffer) < sizeof(buffer) &&
newArgc < ARRAYSIZE(newArgv)) {
if (isspace(*ptr)) {