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:
ducarroz%netscape.com 2002-08-14 22:03:05 +00:00
Родитель 019e27d3b8
Коммит 14da5c905d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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