mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Fix compiler warnings. Bug 127592, r=hwaara, sr=shaver, a=asa
This commit is contained in:
parent
9ecd70ef6b
commit
4662f94ce5
@ -675,7 +675,7 @@ NS_IMETHODIMP nsWebBrowserPersist::OnDataAvailable(
|
||||
// Read data from the input and write to the output
|
||||
char buffer[8192];
|
||||
PRUint32 bytesRead;
|
||||
PRBool readError;
|
||||
PRBool readError = PR_TRUE;
|
||||
while (!cancel && bytesRemaining)
|
||||
{
|
||||
readError = PR_TRUE;
|
||||
|
@ -1182,7 +1182,7 @@ NS_IMETHODIMP nsExternalAppHandler::OnDataAvailable(nsIRequest *request, nsISupp
|
||||
PRUint32 numBytesRead = 0;
|
||||
PRUint32 numBytesWritten = 0;
|
||||
mProgress += count;
|
||||
PRBool readError;
|
||||
PRBool readError = PR_TRUE;
|
||||
while (NS_SUCCEEDED(rv) && count > 0) // while we still have bytes to copy...
|
||||
{
|
||||
readError = PR_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user