зеркало из https://github.com/mozilla/pjs.git
Fix for bug 162709. We need to check the pointer before we access it. This is a regression caused by my previous checkin for bug 71301. R=cavin, SR=bienvenu
This commit is contained in:
Родитель
de568ec798
Коммит
9069418c32
|
@ -924,7 +924,7 @@ const char output[] = "\
|
|||
char * endPtr = buf + readLen;
|
||||
|
||||
// First let see if the stream contains null characters
|
||||
for (readPtr = buf; *readPtr && readPtr < endPtr; readPtr ++)
|
||||
for (readPtr = buf; readPtr < endPtr && *readPtr; readPtr ++)
|
||||
;
|
||||
|
||||
// Did we find a null character? Then, we need to cleanup the stream
|
||||
|
|
Загрузка…
Ссылка в новой задаче