Clean up unneeded initializers from previous patch

This commit is contained in:
David Mandelin 2010-06-25 14:58:34 -07:00
parent 53570dcb31
commit 08b4c31ff3

View File

@ -3306,13 +3306,13 @@ XPCWrappedNative::HandlePossibleNameCaseError(XPCCallContext& ccx,
const char* badName = JS_GetStringBytes(oldJSStr);
char* locationStr = nsnull;
nsCOMPtr<nsIException> e = nsnull;
nsCOMPtr<nsIException> e;
nsXPCException::NewException("", NS_OK, nsnull, nsnull, getter_AddRefs(e));
if(e)
{
nsresult rv;
nsCOMPtr<nsIStackFrame> loc = nsnull;
nsCOMPtr<nsIStackFrame> loc;
rv = e->GetLocation(getter_AddRefs(loc));
if(NS_SUCCEEDED(rv) && loc) {
loc->ToString(&locationStr); // failure here leaves it nsnull.