From 0c8fa657d93166bc2fa6cad8431309c1946ccd54 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 28 Apr 1999 03:06:37 +0000 Subject: [PATCH] fix some uninitialized and incorrectly initialized variables git-svn-id: svn://10.0.0.236/trunk@29664 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/local/src/nsMailboxUrl.cpp | 2 +- mozilla/mailnews/local/src/nsParseMailbox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/local/src/nsMailboxUrl.cpp b/mozilla/mailnews/local/src/nsMailboxUrl.cpp index 2293428329c..beb11485d86 100644 --- a/mozilla/mailnews/local/src/nsMailboxUrl.cpp +++ b/mozilla/mailnews/local/src/nsMailboxUrl.cpp @@ -694,7 +694,7 @@ nsresult nsMailboxUrl::SetRef(const char *aNewRef) nsresult nsMailboxUrl::GetHostPort(PRUint32 *result) const { NS_LOCK_INSTANCE(); - *result = -1; + *result = 0xFFFFFFFF; NS_UNLOCK_INSTANCE(); return NS_OK; } diff --git a/mozilla/mailnews/local/src/nsParseMailbox.cpp b/mozilla/mailnews/local/src/nsParseMailbox.cpp index 2fc5838dc1a..80c86173d36 100644 --- a/mozilla/mailnews/local/src/nsParseMailbox.cpp +++ b/mozilla/mailnews/local/src/nsParseMailbox.cpp @@ -933,7 +933,7 @@ nsresult nsParseMailMessageState::InternRfc822 (struct message_header *header, char **ret_name) { char *s; - nsresult ret; + nsresult ret=NS_OK; if (!header || header->length == 0) return NS_OK;