From 4f29a47803d291a13acf8550f0b80edcc466f5a9 Mon Sep 17 00:00:00 2001 From: "caillon%returnzero.com" Date: Sun, 27 Jul 2003 04:08:48 +0000 Subject: [PATCH] 213796 - Crash In CAPS.DLL On Startup [@ nsPrincipal::GetHashValue] r+sr+caillonIsStupid=bzbarsky@mit.edu --- caps/src/nsPrincipal.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/caps/src/nsPrincipal.cpp b/caps/src/nsPrincipal.cpp index ba882cfb1ac..717fd5eb6ba 100755 --- a/caps/src/nsPrincipal.cpp +++ b/caps/src/nsPrincipal.cpp @@ -522,15 +522,14 @@ nsPrincipal::InitFromPersistent(const char* aPrefName, SetCertificateID(aToken); } else { - nsCOMPtr uri; - nsresult rv = NS_NewURI(getter_AddRefs(uri), aToken, nsnull); + nsresult rv = NS_NewURI(getter_AddRefs(mCodebase), aToken, nsnull); if (NS_FAILED(rv)) { NS_ERROR("Malformed URI in capability.principal preference."); return rv; } nsCAutoString token; - rv = uri->GetSpec(token); + rv = mCodebase->GetSpec(token); if (NS_FAILED(rv)) { return rv; }