Bustage fix from bug 467768 - ensure rv is initialised before using/checking it so that the mailnews library loads.
authorMark Banner <bugzilla@standard8.plus.com>
Mon, 29 Jun 2009 09:51:31 +0100
changeset 2961 e3793301cf0d
parent 2960 4ad01247f686
child 2962 bb94ed177f1f
push id2401
push userbugzilla@standard8.plus.com
push dateMon, 29 Jun 2009 08:51:56 +0000
treeherdercomm-central@e3793301cf0d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs467768
Bustage fix from bug 467768 - ensure rv is initialised before using/checking it so that the mailnews library loads.
mailnews/build/nsMailModule.cpp
--- a/mailnews/build/nsMailModule.cpp
+++ b/mailnews/build/nsMailModule.cpp
@@ -618,17 +618,17 @@ static NS_METHOD UnregisterContentPolicy
   return catman->DeleteCategoryEntry("content-policy", NS_MSGCONTENTPOLICY_CONTRACTID, PR_TRUE);
 }
 
 static NS_METHOD
 RegisterCommandLineHandlers(nsIComponentManager* compMgr, nsIFile* path,
                             const char *location, const char *type,
                             const nsModuleComponentInfo *info)
 {
-  nsresult rv;
+  nsresult rv = NS_OK;
   nsCOMPtr<nsICategoryManager> catMan (do_GetService(NS_CATEGORYMANAGER_CONTRACTID));
   NS_ENSURE_TRUE(catMan, NS_ERROR_FAILURE);
 
   rv |= catMan->AddCategoryEntry("command-line-handler", "m-addressbook",
                                  NS_ABMANAGER_CONTRACTID,
                                  PR_TRUE, PR_TRUE, nsnull);
   rv |= catMan->AddCategoryEntry("command-line-handler", "m-compose",
                                  NS_MSGCOMPOSESERVICE_CONTRACTID,