mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Clean up unneeded initializers from previous patch
This commit is contained in:
parent
53570dcb31
commit
08b4c31ff3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user