fixes bug 94734 - crash on a bugzilla search

patch=ajschult@eos.ncsu.edu r/sr=darin,blizzard a=brendan
This commit is contained in:
darin%netscape.com 2002-07-27 22:59:44 +00:00
parent 056ab42829
commit 92917600a6

View File

@ -574,7 +574,7 @@ nsMultiMixedConv::OnDataAvailable(nsIRequest *request, nsISupports *context,
PRUint32 bufAmt = 0;
if (mProcessingHeaders)
bufAmt = bufLen;
else {
else if (bufLen) {
// if the data ends in a linefeed, and we're in the middle
// of a "part" (ie. mPartChannel exists) don't bother
// buffering, go ahead and send the data we have. Otherwise