Bug 415213, uninitialized variables in PSM r=rrelyea, a1.9=dsicore

This commit is contained in:
kaie@kuix.de 2008-02-13 08:14:25 -08:00
parent 12da382dc2
commit 6ce364ef47
4 changed files with 7 additions and 6 deletions

View File

@ -996,7 +996,7 @@ nsresult nsSecureBrowserUIImpl::UpdateSecurityState(nsIRequest* aRequest)
lockIconState newSecurityState;
PRBool showWarning = PR_FALSE;
lockIconState warnSecurityState;
lockIconState warnSecurityState = lis_no_security;
if (mNewToplevelSecurityState & STATE_IS_SECURE)
{

View File

@ -74,6 +74,7 @@ public:
PRBool ensure_buffer_size(PRInt32 amount);
enum ssl_state {
ssl_invalid, // used for initializating, should never occur
ssl_idle, // not in use by SSL thread, no activity pending
ssl_pending_write, // waiting for SSL thread to complete writing
ssl_pending_read, // waiting for SSL thread to complete reading

View File

@ -94,9 +94,9 @@ nsRecentBadCertsService::GetRecentBadCert(const nsAString & aHostNameWithPort,
foundDER.len = 0;
foundDER.data = nsnull;
PRBool isDomainMismatch;
PRBool isNotValidAtThisTime;
PRBool isUntrusted;
PRBool isDomainMismatch = PR_FALSE;
PRBool isNotValidAtThisTime = PR_FALSE;
PRBool isUntrusted = PR_FALSE;
{
nsAutoMonitor lock(monitor);

View File

@ -489,7 +489,7 @@ PRInt32 nsSSLThread::requestRead(nsNSSSocketInfo *si, void *buf, PRInt32 amount,
PRBool this_socket_is_busy = PR_FALSE;
PRBool some_other_socket_is_busy = PR_FALSE;
nsSSLSocketThreadData::ssl_state my_ssl_state;
nsSSLSocketThreadData::ssl_state my_ssl_state = nsSSLSocketThreadData::ssl_invalid;
PRFileDesc *blockingFD = nsnull;
{
@ -716,7 +716,7 @@ PRInt32 nsSSLThread::requestWrite(nsNSSSocketInfo *si, const void *buf, PRInt32
PRBool this_socket_is_busy = PR_FALSE;
PRBool some_other_socket_is_busy = PR_FALSE;
nsSSLSocketThreadData::ssl_state my_ssl_state;
nsSSLSocketThreadData::ssl_state my_ssl_state = nsSSLSocketThreadData::ssl_invalid;
PRFileDesc *blockingFD = nsnull;
{