Fix unintialized memory read.
git-svn-id: svn://10.0.0.236/trunk@35694 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2394,10 +2394,10 @@ nsWebShell:: GetLinkState(const PRUnichar* aURLSpec, nsLinkState& aState)
|
||||
rv = nsServiceManager::GetService(kGlobalHistoryCID,
|
||||
nsIGlobalHistory::GetIID(),
|
||||
(nsISupports**) &mHistoryService);
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
return NS_OK; // XXX Okay, we couldn't color the link. Big deal.
|
||||
if (NS_FAILED(rv))
|
||||
return NS_OK; // XXX Okay, we couldn't color the link. Big deal.
|
||||
}
|
||||
|
||||
// XXX aURLSpec should really be a char*, not a PRUnichar*.
|
||||
nsAutoString urlStr(aURLSpec);
|
||||
|
||||
Reference in New Issue
Block a user