diff --git a/js/src/xpconnect/src/xpcwrappednative.cpp b/js/src/xpconnect/src/xpcwrappednative.cpp index 22df20cec29..dcc18cd2d70 100644 --- a/js/src/xpconnect/src/xpcwrappednative.cpp +++ b/js/src/xpconnect/src/xpcwrappednative.cpp @@ -3306,13 +3306,13 @@ XPCWrappedNative::HandlePossibleNameCaseError(XPCCallContext& ccx, const char* badName = JS_GetStringBytes(oldJSStr); char* locationStr = nsnull; - nsCOMPtr e = nsnull; + nsCOMPtr e; nsXPCException::NewException("", NS_OK, nsnull, nsnull, getter_AddRefs(e)); if(e) { nsresult rv; - nsCOMPtr loc = nsnull; + nsCOMPtr loc; rv = e->GetLocation(getter_AddRefs(loc)); if(NS_SUCCEEDED(rv) && loc) { loc->ToString(&locationStr); // failure here leaves it nsnull.